From aed16cf8493747a60c07657b3c62f777ad6b3671 Mon Sep 17 00:00:00 2001 From: digitalfrost Date: Wed, 10 Aug 2022 10:47:18 +0200 Subject: [PATCH] PostProcessingPlugin/.../Stretch.py Use enumerate Use enumerate instead of range(len --- plugins/PostProcessingPlugin/scripts/Stretch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/PostProcessingPlugin/scripts/Stretch.py b/plugins/PostProcessingPlugin/scripts/Stretch.py index 924563d305..8d35f68822 100644 --- a/plugins/PostProcessingPlugin/scripts/Stretch.py +++ b/plugins/PostProcessingPlugin/scripts/Stretch.py @@ -432,7 +432,7 @@ class Stretcher: """ dist_palp = self.line_width # Palpation distance to seek for a wall mrot = np.array([[0, -1], [1, 0]]) # Rotation matrix for a quarter turn - for i in range(len(orig_seq)): + for i, _ in enumerate(orig_seq): ibeg = i # Index of the first point of the segment iend = i + 1 # Index of the last point of the segment if iend == len(orig_seq):