Skip to content

Commit 5ce526f

Browse files
STY: Further simplification
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 1be9a67 commit 5ce526f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

nipype/interfaces/fsl/utils.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,7 @@ class ExtractROI(FSLCommand):
483483

484484
def _format_arg(self, name, spec, value):
485485
if name == "crop_list":
486-
return " ".join(
487-
map(str, (x for sublist in map(list, value) for x in sublist))
488-
)
486+
return " ".join(str(x) for sublist in value for x in sublist)
489487
return super()._format_arg(name, spec, value)
490488

491489
def _list_outputs(self):

0 commit comments

Comments
 (0)