From 15d838e08194fe4abb42b5814d22cf14bfcb8a47 Mon Sep 17 00:00:00 2001 From: Bennet Fauber Date: Sun, 12 Nov 2017 11:52:34 -0500 Subject: [PATCH 1/2] set sform with set_sform not get_sform --- doc/source/nifti_images.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/nifti_images.rst b/doc/source/nifti_images.rst index 2f8a7cd0db..cd3f0a978c 100644 --- a/doc/source/nifti_images.rst +++ b/doc/source/nifti_images.rst @@ -239,7 +239,7 @@ You can get the affine and the code using the ``coded=True`` argument to [ 0. , 0.32, 2.17, -7.25], [ 0. , 0. , 0. , 1. ]]), array(1, dtype=int16)) -You can set the sform with with the ``get_sform()`` method of the header and +You can set the sform with with the ``set_sform()`` method of the header and the image. >>> n1_header.set_sform(np.diag([2, 3, 4, 1])) From 93cc5921b53b7388e3301d5f3ab531ca5c5bebe5 Mon Sep 17 00:00:00 2001 From: Bennet Fauber Date: Sun, 12 Nov 2017 12:21:26 -0500 Subject: [PATCH 2/2] two withs become one --- doc/source/nifti_images.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/nifti_images.rst b/doc/source/nifti_images.rst index cd3f0a978c..5bf423571c 100644 --- a/doc/source/nifti_images.rst +++ b/doc/source/nifti_images.rst @@ -239,7 +239,7 @@ You can get the affine and the code using the ``coded=True`` argument to [ 0. , 0.32, 2.17, -7.25], [ 0. , 0. , 0. , 1. ]]), array(1, dtype=int16)) -You can set the sform with with the ``set_sform()`` method of the header and +You can set the sform with the ``set_sform()`` method of the header and the image. >>> n1_header.set_sform(np.diag([2, 3, 4, 1]))