Skip to content

Commit

Permalink
Merge pull request #631 from AmirMardan/bug-fix_sampling_when_not_given
Browse files Browse the repository at this point in the history
Bug: fix sampling when not given
  • Loading branch information
mrava87 authored Dec 17, 2024
2 parents 64de479 + dfc2c7a commit bbc5bd2
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions pylops/waveeqprocessing/seismicinterpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,7 @@ def SeismicInterpolation(
f"spat1axis and taxis for kind=%{kind}"
)
else:
sampling = (
np.abs(spataxis[1] - spataxis[1]),
np.abs(spat1axis[1] - spat1axis[1]),
np.abs(taxis[1] - taxis[1]),
)
sampling = (dspat, dspat1, dt)
Pop = FFTND(dims=dims, nffts=nffts, sampling=sampling)
Pop = Pop.H
else:
Expand All @@ -271,10 +267,7 @@ def SeismicInterpolation(
f"and taxis for kind={kind}"
)
else:
sampling = (
np.abs(spataxis[1] - spataxis[1]),
np.abs(taxis[1] - taxis[1]),
)
sampling = (dspat, dt)
Pop = FFT2D(dims=dims, nffts=nffts, sampling=sampling)
Pop = Pop.H
SIop = Rop * Pop
Expand Down

0 comments on commit bbc5bd2

Please sign in to comment.