Skip to content

Commit

Permalink
STY: Apply ruff rule RUF021
Browse files Browse the repository at this point in the history
RUF021 Parenthesize `a and b` expressions when chaining `and` and `or` together,
       to make the precedence clear
  • Loading branch information
DimitriPapadopoulos committed Oct 6, 2024
1 parent e01173d commit 1be9a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nipype/interfaces/spm/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def func_is_3d(in_file):
else:
img = load(in_file)
shape = img.shape
return len(shape) == 3 or len(shape) == 4 and shape[3] == 1
return len(shape) == 3 or (len(shape) == 4 and shape[3] == 1)


def get_first_3dfile(in_files):
Expand Down

0 comments on commit 1be9a67

Please sign in to comment.