Skip to content

Commit eb20747

Browse files
committed
DOC: Fix doctest failures caused by sform/qform code type change.
1 parent 663f500 commit eb20747

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/source/nifti_images.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ You can get the affine and the code using the ``coded=True`` argument to
237237
(array([[ -2. , 0. , 0. , 117.86],
238238
[ -0. , 1.97, -0.36, -35.72],
239239
[ 0. , 0.32, 2.17, -7.25],
240-
[ 0. , 0. , 0. , 1. ]]), array(1, dtype=int16))
240+
[ 0. , 0. , 0. , 1. ]]), 1)
241241

242242
You can set the sform with the ``set_sform()`` method of the header and
243243
the image.
@@ -256,7 +256,7 @@ Set the affine and code using the ``code`` parameter to ``set_sform()``:
256256
(array([[ 3., 0., 0., 0.],
257257
[ 0., 4., 0., 0.],
258258
[ 0., 0., 5., 0.],
259-
[ 0., 0., 0., 1.]]), array(4, dtype=int16))
259+
[ 0., 0., 0., 1.]]), 4)
260260

261261
The qform affine
262262
================
@@ -276,7 +276,7 @@ the sform: ``get_qform()``, ``set_qform()``.
276276
(array([[ -2. , 0. , 0. , 117.86],
277277
[ -0. , 1.97, -0.36, -35.72],
278278
[ 0. , 0.32, 2.17, -7.25],
279-
[ 0. , 0. , 0. , 1. ]]), array(1, dtype=int16))
279+
[ 0. , 0. , 0. , 1. ]]), 1)
280280

281281
The qform also has a corresponding ``qform_code`` with the same interpretation
282282
as the `sform_code`.
@@ -332,7 +332,7 @@ respectively:
332332
(array([[ 2., 0., 0., 0.],
333333
[ 0., 2., 0., 0.],
334334
[ 0., 0., 2., 0.],
335-
[ 0., 0., 0., 1.]]), array(2, dtype=int16))
335+
[ 0., 0., 0., 1.]]), 2)
336336
>>> img.get_qform(coded=True)
337337
(None, 0)
338338

0 commit comments

Comments
 (0)