Skip to content

Commit a51019a

Browse files
committed
BF: boolean indexing now requires matching dimension
1 parent 0f3048c commit a51019a

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
@@ -63,7 +63,7 @@ def io_orientation(affine, tol=None):
6363
RS = RZS / zooms
6464
# Transform below is polar decomposition, returning the closest
6565
# shearless matrix R to RS
66-
P, S, Qs = npl.svd(RS)
66+
P, S, Qs = npl.svd(RS, full_matrices=False)
6767
# Threshold the singular values to determine the rank.
6868
if tol is None:
6969
tol = S.max() * max(RS.shape) * np.finfo(S.dtype).eps

0 commit comments

Comments
 (0)