Skip to content

Commit

Permalink
chg: update Documentation for save_to_file() !minor
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrohwer committed Mar 5, 2021
1 parent 2abf9c4 commit 04ede5a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,16 @@ The current state of any :class:`~nmrpy.data_objects.FidArray` object can be
saved to file using the :meth:`~nmrpy.data_objects.FidArray.save_to_file` method: ::

>>> fid_array.save_to_file(filename='fidarray.nmrpy')
The filename need not be specified, if not given the name is taken from
:attr:`~nmrpy.data_objects.FidArray.fid_path` and the `.nmrpy` extension is
appended. If the file exists, it is not overwritten; a forced overwrite can
be specified with: ::

>>> fid_array.save_to_file(filename='fidarray.nmrpy', overwrite=True)

And reloaded using :meth:`~nmrpy.data_objects.FidArray.from_path`: ::
The :class:`~nmrpy.data_objects.FidArray` can be reloaded using
:meth:`~nmrpy.data_objects.FidArray.from_path`: ::

>>> fid_array = nmrpy.from_path(fid_path='fidarray.nmrpy')

Expand Down

0 comments on commit 04ede5a

Please sign in to comment.