mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 22:25:53 +08:00
PostProcessingPlugin/.../Stretch.py Use enumerate
Use enumerate instead of range(len
This commit is contained in:
parent
982074c047
commit
aed16cf849
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user