Skip to content

Commit 891d85c

Browse files
authored
fix: incorrect operation ordering caught by @matthew-brett
1 parent 04584b6 commit 891d85c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/affines.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,5 +321,5 @@ def obliquity(affine):
321321
322322
"""
323323
vs = voxel_sizes(affine)
324-
best_cosines = np.abs((affine[:-1, :-1] / vs).max(axis=1))
324+
best_cosines = np.abs(affine[:-1, :-1] / vs).max(axis=1)
325325
return np.arccos(best_cosines)

0 commit comments

Comments
 (0)