Skip to content

Commit

Permalink
fix: remove taper if only one window is used
Browse files Browse the repository at this point in the history
  • Loading branch information
mrava87 committed Jan 4, 2024
1 parent 3e48cbf commit 17ac9e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylops/signalprocessing/sliding2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ def Sliding2D(
tapend = tap.copy()
tapend[-nover:] = 1
taps = {}
taps[0] = tapin
taps[0] = tapin if nwins > 1 else tap
for i in range(1, nwins - 1):
taps[i] = tap
taps[nwins - 1] = tapend
taps[nwins - 1] = tapend if nwins > 1 else tap

# transform to apply
if tapertype is None:
Expand Down

0 comments on commit 17ac9e9

Please sign in to comment.