diff options
author | kritisingh1 <kritisingh1.ks@gmail.com> | 2019-06-07 21:46:42 +0530 |
---|---|---|
committer | kritisingh1 <kritisingh1.ks@gmail.com> | 2019-06-07 22:30:45 +0530 |
commit | 13561bd89d67bd101cdb195f003ae1e34c6a5b52 (patch) | |
tree | 46a20f0100e46125cf26a10e2da0553c16349bfd /numpy/lib/npyio.py | |
parent | 67b53e1d3017171235b155a898e54f4bb8a41d47 (diff) | |
download | numpy-13561bd89d67bd101cdb195f003ae1e34c6a5b52.tar.gz |
fix tests
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 460c2f5f2..84f611b49 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -2226,7 +2226,10 @@ def ndfromtxt(fname, **kwargs): Load ASCII data stored in a file and return it as a single array. .. deprecated:: 1.17 - np.ndfromtxt is deprecated + ndfromtxt` is a deprecated alias of `genfromtxt` which + overwrites the ``usemask`` argument with `False` even when + explicitly called as ``ndfromtxt(..., usemask=True)``. + Use `genfromtxt` instead. Parameters ---------- @@ -2240,7 +2243,8 @@ def ndfromtxt(fname, **kwargs): kwargs['usemask'] = False # Numpy 1.17 warnings.warn( - "np.ndfromtxt is deprecated", + "np.ndfromtxt is a deprecated alias of np.genfromtxt, " + "prefer the latter.", DeprecationWarning, stacklevel=2) return genfromtxt(fname, **kwargs) @@ -2250,7 +2254,10 @@ def mafromtxt(fname, **kwargs): Load ASCII data stored in a text file and return a masked array. .. deprecated:: 1.17 - np.mafromtxt is deprecated + np.mafromtxt is a deprecated alias of `genfromtxt` which + overwrites the ``usemask`` argument with `True` even when + explicitly called as ``mafromtxt(..., usemask=False)``. + Use `genfromtxt` instead. Parameters ---------- @@ -2264,7 +2271,8 @@ def mafromtxt(fname, **kwargs): kwargs['usemask'] = True # Numpy 1.17 warnings.warn( - "np.mafromtxt is deprecated", + "np.mafromtxt is a deprecated alias of np.genfromtxt, " + "prefer the latter.", DeprecationWarning, stacklevel=2) return genfromtxt(fname, **kwargs) |