Skip to content

Commit

Permalink
STY: Further simplification
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Markiewicz <[email protected]>
  • Loading branch information
DimitriPapadopoulos and effigies committed Oct 6, 2024
1 parent 1be9a67 commit 5ce526f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nipype/interfaces/fsl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,7 @@ class ExtractROI(FSLCommand):

def _format_arg(self, name, spec, value):
if name == "crop_list":
return " ".join(
map(str, (x for sublist in map(list, value) for x in sublist))
)
return " ".join(str(x) for sublist in value for x in sublist)
return super()._format_arg(name, spec, value)

def _list_outputs(self):
Expand Down

0 comments on commit 5ce526f

Please sign in to comment.