8000 STY: Apply ruff rules (RUF) again by DimitriPapadopoulos · Pull Request #3688 · nipy/nipype · GitHub
[go: up one dir, main page]

Skip to content

STY: Apply ruff rules (RUF) again #3688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
STY: Further simplification
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
  • Loading branch information
DimitriPapadopoulos and effigies committed Oct 6, 2024
commit 5ce526f318abe59d4213455ea327b55201838065
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