Skip to content

Commit

Permalink
minor: Remove all remaining fftshift
Browse files Browse the repository at this point in the history
  • Loading branch information
cako committed Jan 23, 2022
1 parent 63a22b6 commit 7e596d4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pylops/waveeqprocessing/oneway.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,17 @@ def PhaseShift(vel, dz, nt, freq, kx, ky=None, dtype="float64"):
dims = (nt, kx.size, ky.size)
dimsfft = (freq.size, kx.size, ky.size)
Fop = FFT(dims, dir=0, nfft=nt, real=True, dtype=dtype)
Kxop = FFT(dimsfft, dir=1, nfft=kx.size, real=False, fftshift=True, dtype=dtypefft)
Kxop = FFT(
dimsfft, dir=1, nfft=kx.size, real=False, fftshift_after=True, dtype=dtypefft
)
if ky is not None:
Kyop = FFT(
dimsfft, dir=2, nfft=ky.size, real=False, fftshift=True, dtype=dtypefft
dimsfft,
dir=2,
nfft=ky.size,
real=False,
fftshift_after=True,
dtype=dtypefft,
)
Pop = _PhaseShift(vel, dz, freq, kx, ky, dtypefft)
if ky is None:
Expand Down

0 comments on commit 7e596d4

Please sign in to comment.