Skip to content

Commit a6b4d83

Browse files
committed
DOC: Small adjustments to grammar/flow
1 parent 92a8acb commit a6b4d83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/nifti_images.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,14 +353,14 @@ If you create a new image and specify an existing header, e.g.:
353353
>>> new_data = np.random.random(n1_img.shape[:3])
354354
>>> new_img = nib.nifti1.Nifti1Image(data, None, header=new_header)
355355

356-
Then the newly created image will inherit the same sform and qform codes that
356+
then the newly created image will inherit the same sform and qform codes that
357357
are in the provided header. However, if you create a new image with both an
358358
affine and a header specified, e.g.:
359359

360360
>>> xform = np.eye(4)
361361
>>> new_img = nib.nifti1.Nifti1Image(data, xform, header=new_header)
362362

363-
Then the sform and qform codes will *only* be preserved if the provided affine
363+
then the sform and qform codes will *only* be preserved if the provided affine
364364
is the same as the affine in the provided header. If the affines do not match,
365365
the sform and qform codes will be set to their default values of 2 and 0
366366
respectively. This is done on the basis that, if you are changing the affine,

0 commit comments

Comments
 (0)