Skip to content

Commit

Permalink
STY: Apply ruff/flake8-pie rule PIE808
Browse files Browse the repository at this point in the history
PIE808 Unnecessary `start` argument in `range`
  • Loading branch information
DimitriPapadopoulos committed Sep 22, 2024
1 parent 7191149 commit 563a6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nibabel/ecat.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ def to_file_map(self, file_map=None):
hdr.write_to(hdrf)

# Write every frames
for index in range(0, self.header['num_frames']):
for index in range(self.header['num_frames']):
# Move to subheader offset
frame_offset = subheaders._get_frame_offset(index) - 512
imgf.seek(frame_offset)
Expand Down

0 comments on commit 563a6bc

Please sign in to comment.