diff options
author | Erik Quaeghebeur <equaeghe@users.noreply.github.com> | 2017-10-23 10:42:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-23 10:42:47 +0200 |
commit | 0b7fe8a68047ba20e220d9849fdac1c60bb1c419 (patch) | |
tree | d278121cf18333f64ece747ec7eb0891ef1b9134 /numpy/lib/nanfunctions.py | |
parent | 5d54ba0d52e66368c948c0e5fb83cac83e71eb50 (diff) | |
download | numpy-0b7fe8a68047ba20e220d9849fdac1c60bb1c419.tar.gz |
Make warnings for nanmin and nanmax consistent
Diffstat (limited to 'numpy/lib/nanfunctions.py')
-rw-r--r-- | numpy/lib/nanfunctions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/nanfunctions.py b/numpy/lib/nanfunctions.py index ffedcd68a..b3f3bfc69 100644 --- a/numpy/lib/nanfunctions.py +++ b/numpy/lib/nanfunctions.py @@ -279,7 +279,7 @@ def nanmin(a, axis=None, out=None, keepdims=np._NoValue): # which do not implement isnan (gh-9009), or fmin correctly (gh-8975) res = np.fmin.reduce(a, axis=axis, out=out, **kwargs) if np.isnan(res).any(): - warnings.warn("All-NaN axis encountered", RuntimeWarning, stacklevel=2) + warnings.warn("All-NaN slice encountered", RuntimeWarning, stacklevel=2) else: # Slow, but safe for subclasses of ndarray a, mask = _replace_nan(a, +np.inf) |