diff options
author | Tyler Reddy <tyler.je.reddy@gmail.com> | 2018-12-04 12:17:59 -0800 |
---|---|---|
committer | Tyler Reddy <tyler.je.reddy@gmail.com> | 2018-12-14 10:14:05 -0800 |
commit | 19784177a61de75927a4934fd4cdd91afbb5b35c (patch) | |
tree | cf9f88bf968e48d0eebd2cd523cefd2bd4c2fd51 /numpy/lib/npyio.py | |
parent | 250861059b106371cb232456eeccd6d9e97d8f00 (diff) | |
download | numpy-19784177a61de75927a4934fd4cdd91afbb5b35c.tar.gz |
MAINT: address several reviewer comments
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 71261b826..e98c33e29 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -173,7 +173,7 @@ class NpzFile(Mapping): >>> npz = np.load(outfile) >>> isinstance(npz, np.lib.io.NpzFile) True - >>> npz.files + >>> sorted(npz.files) ['x', 'y'] >>> npz['x'] # getitem access array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) @@ -610,7 +610,7 @@ def savez(file, *args, **kwds): >>> np.savez(outfile, x=x, y=y) >>> _ = outfile.seek(0) >>> npzfile = np.load(outfile) - >>> npzfile.files + >>> sorted(npzfile.files) ['x', 'y'] >>> npzfile['x'] array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) |