summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-05-15 10:52:17 -0600
committerGitHub <noreply@github.com>2018-05-15 10:52:17 -0600
commitb2a699a47952323673a33951d9a6d94aff209831 (patch)
tree076a7957344138d641400f4a97d8900c4456a57b /numpy
parent32ac36eae7060a1e0246448b7ed2e3d72d49b780 (diff)
parent7a01f661cef8fe492cbbf5ed1e2474c11ce0527b (diff)
downloadnumpy-b2a699a47952323673a33951d9a6d94aff209831.tar.gz
Merge pull request #11094 from mattip/fix-11080
DOC: add numpy.lib.format to docs and link to it
Diffstat (limited to 'numpy')
-rw-r--r--numpy/lib/format.py7
-rw-r--r--numpy/lib/npyio.py6
2 files changed, 6 insertions, 7 deletions
diff --git a/numpy/lib/format.py b/numpy/lib/format.py
index a0ec55f01..23eac7e7d 100644
--- a/numpy/lib/format.py
+++ b/numpy/lib/format.py
@@ -1,9 +1,8 @@
"""
+Binary serialization
-.. _binary-serialization:
-
-Binary Serialization
-====================
+NPY format
+==========
A simple format for saving numpy arrays to disk with the full
information about them.
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
index 95804be7f..b109d65e1 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 :ref:`binary-serialization`.
+ For a description of the ``.npy`` format, see :py:mod:`numpy.lib.format`.
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 :ref:`binary-serialization`.
+ description of the ``.npy`` format, see :py:mod:`numpy.lib.format`.
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
- :ref:`binary-serialization`.
+ :py:mod:`numpy.lib.format`.
When opening the saved ``.npz`` file with `load` a `NpzFile` object is