From af5d8ae328d1e419ce41bbfcc43a5fbebe426053 Mon Sep 17 00:00:00 2001 From: mrava87 Date: Sat, 18 May 2024 21:57:57 +0300 Subject: [PATCH] minor: remove unused i --- pylops/signalprocessing/sliding1d.py | 2 +- pylops/signalprocessing/sliding2d.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)