Skip to content

Commit 1be9a67

Browse files
STY: Apply ruff rule RUF021
RUF021 Parenthesize `a and b` expressions when chaining `and` and `or` together, to make the precedence clear
1 parent e01173d commit 1be9a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: nipype/interfaces/spm/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def func_is_3d(in_file):
5252
else:
5353
img = load(in_file)
5454
shape = img.shape
55-
return len(shape) == 3 or len(shape) == 4 and shape[3] == 1
55+
return len(shape) == 3 or (len(shape) == 4 and shape[3] == 1)
5656

5757

5858
def get_first_3dfile(in_files):

0 commit comments

Comments
 (0)