Skip to content

Commit 2d7f298

Browse files
committed
RF: simplify allclose test
alltrue redundant in allclose test
1 parent b6422b8 commit 2d7f298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/orientations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def io_orientation(affine, tol=None):
7575
ornt = np.ones((p, 2), dtype=np.int8) * np.nan
7676
for in_ax in range(p):
7777
col = R[:, in_ax]
78-
if not np.alltrue(np.allclose(col, 0)):
78+
if not np.allclose(col, 0):
7979
out_ax = np.argmax(np.abs(col))
8080
ornt[in_ax, 0] = out_ax
8181
assert col[out_ax] != 0

0 commit comments

Comments
 (0)