Merged
Changes from 1 commit
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
PrevPrevious commit
STY: Apply ruff/flake8-pie rule PIE810
PIE810 Call `endswith` once with a `tuple`
  • Loading branch information
@DimitriPapadopoulos
DimitriPapadopoulos committedOct 5, 2024
commit 39800373c645c0fdf6a40113ba0d68fc3920625d
Original file line numberDiff line numberDiff line change
Expand Up@@ -471,9 +471,7 @@ def _parse_files(self, filenames):
for filename in filenames:
# search for relevant files, and sort accordingly
for fl in search_files(filename, outtypes, self.inputs.crop):
if (
fl.endswith((".nii", ".gz", ".nrrd", ".nhdr"))
):
if fl.endswith((".nii", ".gz", ".nrrd", ".nhdr")):
outfiles.append(fl)
elif fl.endswith(".bval"):
bvals.append(fl)
Expand Down