Skip to content

Commit 4270ed2

Browse files
committed
DOC: Mention only nib.save in Getting started docs
Resolves #945.
1 parent 516434c commit 4270ed2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

doc/source/gettingstarted.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ and all other values are set to resonable defaults.
114114
Saving this new image to a file is trivial. We won't do it here, but it looks
115115
like::
116116

117-
img.to_filename(os.path.join('build','test4d.nii.gz'))
118-
119-
or::
120-
121-
nib.save(img, os.path.join('build','test4d.nii.gz'))
117+
nib.save(img, os.path.join('build', 'test4d.nii.gz'))
122118

123119
This short introduction only gave a quick overview of NiBabel's capabilities.
124120
Please have a look at the :ref:`api` for more details about supported file

0 commit comments

Comments
 (0)