PostProcessingPlugin/.../Stretch.py Use enumerate

Use enumerate instead of range(len
This commit is contained in:
digitalfrost 2022-08-10 10:47:18 +02:00
parent 982074c047
commit aed16cf849

View file

@ -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):