diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2018-05-13 11:17:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-13 11:17:04 -0700 |
commit | dee82fb48fcde37131423cbfee73f3e5a8163862 (patch) | |
tree | 51eb680c345a9786df58a8ec75f734749c639d62 /numpy/lib | |
parent | 342609be2f6a9a3d2304d323a68b12795545fc1c (diff) | |
parent | c759466acbcb2c8ce6cce0ae971ba4ada8055a7a (diff) | |
download | numpy-dee82fb48fcde37131423cbfee73f3e5a8163862.tar.gz |
Merge pull request #11085 from mattip/fix-11080
DOC: create label and ref, fixes broken link
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/format.py | 3 | ||||
-rw-r--r-- | numpy/lib/npyio.py | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/numpy/lib/format.py b/numpy/lib/format.py index afa154cc5..a0ec55f01 100644 --- a/numpy/lib/format.py +++ b/numpy/lib/format.py @@ -1,4 +1,7 @@ """ + +.. _binary-serialization: + Binary Serialization ==================== diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 5d3c1e525..95804be7f 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -475,7 +475,7 @@ def save(file, arr, allow_pickle=True, fix_imports=True): Notes ----- - For a description of the ``.npy`` format, see :py:mod:`numpy.lib.format` + For a description of the ``.npy`` format, see :ref:`binary-serialization`. Examples -------- @@ -559,7 +559,7 @@ def savez(file, *args, **kwds): The ``.npz`` file format is a zipped archive of files named after the variables they contain. The archive is not compressed and each file in the archive contains one variable in ``.npy`` format. For a - description of the ``.npy`` format, see :py:mod:`numpy.lib.format` + description of the ``.npy`` format, see :ref:`binary-serialization`. When opening the saved ``.npz`` file with `load` a `NpzFile` object is returned. This is a dictionary-like object which can be queried for @@ -639,7 +639,7 @@ def savez_compressed(file, *args, **kwds): variables they contain. The archive is compressed with ``zipfile.ZIP_DEFLATED`` and each file in the archive contains one variable in ``.npy`` format. For a description of the ``.npy`` format, see - :py:mod:`numpy.lib.format` + :ref:`binary-serialization`. When opening the saved ``.npz`` file with `load` a `NpzFile` object is |