Skip to content

Commit b6422b8

Browse files
committed
DOC: update docstring to reflect new tolerance
Docstring incorrect in using S.shape rather than the shape of the (matrix part of the) affine.
1 parent edc7b4e commit b6422b8

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
@@ -37,7 +37,7 @@ def io_orientation(affine, tol=None):
3737
threshold below which SVD values of the affine are considered zero. If
3838
`tol` is None, and ``S`` is an array with singular values for `affine`,
3939
and ``eps`` is the epsilon value for datatype of ``S``, then `tol` set to
40-
``S.max() * max(S.shape) * eps``.
40+
``S.max() * max((q, p)) * eps``
4141
4242
Returns
4343
-------

0 commit comments

Comments
 (0)