We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1996ead commit 0fb8920Copy full SHA for 0fb8920
nibabel/cmdline/diff.py
@@ -56,9 +56,15 @@ def are_values_different(*values):
56
57
# to not recompute over again
58
if isinstance(value0, np.ndarray):
59
- value0_nans = np.isnan(value0)
60
- if not np.any(value0_nans):
61
- value0_nans = None
+ try:
+ value0_nans = np.isnan(value0)
+ if not np.any(value0_nans):
62
+ value0_nans = None
63
+ except TypeError as exc:
64
+ if "not supported" in str(exc):
65
66
+ else:
67
+ raise
68
69
for value in values[1:]:
70
if type(value0) != type(value): # if types are different, then we consider them different
0 commit comments