Skip to content

Commit

Permalink
STY: Apply ruff/refurb preview rule FURB192
Browse files Browse the repository at this point in the history
FURB192 Prefer `min` over `sorted()` to compute the minimum value in a sequence
  • Loading branch information
DimitriPapadopoulos committed Oct 1, 2024
1 parent 5302b65 commit d9ec21d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nibabel/nicom/dicomwrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def applies(self, dcm_wrp) -> bool:
warnings.warn(
'A multi-stack file was passed without an explicit filter, just using lowest StackID'
)
self._selected = sorted(stack_ids)[0]
self._selected = min(stack_ids)
return True
return False

Expand Down

0 comments on commit d9ec21d

Please sign in to comment.