Skip to content

Commit c1f553f

Browse files
committed
fixed a fringe use case
1 parent 45d0edf commit c1f553f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

nibabel/cmdline/diff.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,13 @@ def are_values_different(*values):
6060

6161
if type(value0) != type(value): # if types are different, then we consider them different
6262
return True
63-
elif isinstance(value0, np.ndarray) and np.any(value0 != value): # special test for ndarray
64-
return True
63+
64+
elif isinstance(value0, np.ndarray):
65+
if np.any(value0 != value): # special test for ndarray
66+
return True
67+
else:
68+
return False
69+
6570
elif value0 != value:
6671
return True
6772

0 commit comments

Comments
 (0)