Skip to content

Commit 86c38db

Browse files
committed
instead of recalculation, we use the precalculated sampling values
1 parent f8cc8e9 commit 86c38db

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pylops/waveeqprocessing/seismicinterpolation.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,7 @@ def SeismicInterpolation(
271271
f"and taxis for kind={kind}"
272272
)
273273
else:
274-
sampling = (
275-
np.abs(spataxis[1] - spataxis[0]),
276-
np.abs(taxis[1] - taxis[0]),
277-
)
274+
sampling = (dspat, dt)
278275
Pop = FFT2D(dims=dims, nffts=nffts, sampling=sampling)
279276
Pop = Pop.H
280277
SIop = Rop * Pop

0 commit comments

Comments
 (0)