Skip to content

Commit 0afe198

Browse files
committed
chore: axis=-1 where it was missed
1 parent fad324e commit 0afe198

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

pylops/avo/poststack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def PoststackInversion(
405405
RegL1op = FirstDerivative(
406406
(nt0, nx), axis=0, kind="forward", dtype=PPop.dtype
407407
)
408-
RegL2op = SecondDerivative((nt0, nx), dir=1, dtype=PPop.dtype)
408+
RegL2op = SecondDerivative((nt0, nx), axis=1, dtype=PPop.dtype)
409409
else:
410410
RegL1op = FirstDerivative(
411411
(nt0, nx, ny), axis=0, kind="forward", dtype=PPop.dtype

pylops/signalprocessing/Interp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ def _checkunique(iava):
1717
raise ValueError("Repeated values in iava array")
1818

1919

20-
def _nearestinterp(dims, iava, axis=0, dtype="float64"):
20+
def _nearestinterp(dims, iava, axis=-1, dtype="float64"):
2121
"""Nearest neighbour interpolation."""
2222
iava = np.round(iava).astype(int)
2323
_checkunique(iava)
2424
return Restriction(dims, iava, axis=axis, dtype=dtype), iava
2525

2626

27-
def _linearinterp(dims, iava, axis=0, dtype="float64"):
27+
def _linearinterp(dims, iava, axis=-1, dtype="float64"):
2828
"""Linear interpolation."""
2929
ncp = get_array_module(iava)
3030

pylops/signalprocessing/Sliding1D.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def Sliding1D(Op, dim, dimd, nwin, nover, tapertype="hanning", design=False):
103103

104104
combining = HStack(
105105
[
106-
Restriction(dimd, np.arange(win_in, win_end), axis=0, dtype=Op.dtype).H
106+
Restriction(dimd, np.arange(win_in, win_end), dtype=Op.dtype).H
107107
for win_in, win_end in zip(dwin_ins, dwin_ends)
108108
]
109109
)

pylops/signalprocessing/_BaseFFTs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class _BaseFFT(LinearOperator):
2424
def __init__(
2525
self,
2626
dims,
27-
axis=0,
27+
axis=-1,
2828
nfft=None,
2929
sampling=1.0,
3030
norm="ortho",

0 commit comments

Comments
 (0)