diff --git a/pylops/signalprocessing/sliding1d.py b/pylops/signalprocessing/sliding1d.py index 9bb331bb..9ddc4842 100644 --- a/pylops/signalprocessing/sliding1d.py +++ b/pylops/signalprocessing/sliding1d.py @@ -189,7 +189,7 @@ def __init__( self.taps = [ tapin, ] - for i in range(1, nwins - 1): + for _ in range(1, nwins - 1): self.taps.append(tap) self.taps.append(tapend) self.taps = np.vstack(self.taps) diff --git a/pylops/signalprocessing/sliding2d.py b/pylops/signalprocessing/sliding2d.py index 4a76f5e6..ad0be2f5 100644 --- a/pylops/signalprocessing/sliding2d.py +++ b/pylops/signalprocessing/sliding2d.py @@ -230,7 +230,7 @@ def __init__( self.taps = [ tapin[np.newaxis, :], ] - for i in range(1, nwins - 1): + for _ in range(1, nwins - 1): self.taps.append(tap[np.newaxis, :]) self.taps.append(tapend[np.newaxis, :]) self.taps = np.concatenate(self.taps, axis=0)