Merge pull request #12995 from digitalfrost/100822

PostProcessingPlugin/.../Stretch.py Use enumerate
This commit is contained in:
Jelle Spijker 2022-08-10 11:59:45 +02:00 committed by GitHub
commit 069e788139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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