8000 Merge pull request #11085 from mattip/fix-11080 · numpy/numpy@dee82fb · GitHub
[go: up one dir, main page]

Skip to content

Commit dee82fb

Browse files
authored
Merge pull request #11085 from mattip/fix-11080
DOC: create label and ref, fixes broken link
2 parents 342609b + c759466 commit dee82fb

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

doc/source/reference/routines.io.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ NumPy binary files (NPY, NPZ)
1414
savez_compressed
1515

1616
The format of these binary file types is documented in
17-
:py:mod:`numpy.lib.format`
17+
:ref:`binary-serialization`.
1818

1919
Text files
2020
----------

numpy/lib/format.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
"""
2+
3+
.. _binary-serialization:
4+
25
Binary Serialization
36
====================
47

numpy/lib/npyio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def save(file, arr, allow_pickle=True, fix_imports=True):
475475
476476
Notes
477477
-----
478-
For a description of the ``.npy`` format, see :py:mod:`numpy.lib.format`
478+
For a description of the ``.npy`` format, see :ref:`binary-serialization`.
479479
480480
Examples
481481
--------
@@ -559,7 +559,7 @@ def savez(file, *args, **kwds):
559559
The ``.npz`` file format is a zipped archive of files named after the
560560
variables they contain. The archive is not compressed and each file
561561
in the archive contains one variable in ``.npy`` format. For a
562-
description of the ``.npy`` format, see :py:mod:`numpy.lib.format`
562+
description of the ``.npy`` format, see :ref:`binary-serialization`.
563563
564564
When opening the saved ``.npz`` file with `load` a `NpzFile` object is
565565
returned. This is a dictionary-like object which can be queried for
@@ -639,7 +639,7 @@ def savez_compressed(file, *args, **kwds):
639639
variables they contain. The archive is compressed with
640640
``zipfile.ZIP_DEFLATED`` and each file in the archive contains one variable
641641
in ``.npy`` format. For a description of the ``.npy`` format, see
642-
:py:mod:`numpy.lib.format`
642+
:ref:`binary-serialization`.
643643
644644
645645
When opening the saved ``.npz`` file with `load` a `NpzFile` object is

0 commit comments

Comments
 (0)
0