Skip to content

Commit bbc5bd2

Browse files
authored
Merge pull request #631 from AmirMardan/bug-fix_sampling_when_not_given
Bug: fix sampling when not given
2 parents 64de479 + dfc2c7a commit bbc5bd2

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

pylops/waveeqprocessing/seismicinterpolation.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,7 @@ def SeismicInterpolation(
256256
f"spat1axis and taxis for kind=%{kind}"
257257
)
258258
else:
259-
sampling = (
260-
np.abs(spataxis[1] - spataxis[1]),
261-
np.abs(spat1axis[1] - spat1axis[1]),
262-
np.abs(taxis[1] - taxis[1]),
263-
)
259+
sampling = (dspat, dspat1, dt)
264260
Pop = FFTND(dims=dims, nffts=nffts, sampling=sampling)
265261
Pop = Pop.H
266262
else:
@@ -271,10 +267,7 @@ def SeismicInterpolation(
271267
f"and taxis for kind={kind}"
272268
)
273269
else:
274-
sampling = (
275-
np.abs(spataxis[1] - spataxis[1]),
276-
np.abs(taxis[1] - taxis[1]),
277-
)
270+
sampling = (dspat, dt)
278271
Pop = FFT2D(dims=dims, nffts=nffts, sampling=sampling)
279272
Pop = Pop.H
280273
SIop = Rop * Pop

0 commit comments

Comments
 (0)