summaryrefslogtreecommitdiff
path: root/numpy/lib/nanfunctions.py
diff options
context:
space:
mode:
authorErik Quaeghebeur <equaeghe@users.noreply.github.com>2017-10-23 10:42:47 +0200
committerGitHub <noreply@github.com>2017-10-23 10:42:47 +0200
commit0b7fe8a68047ba20e220d9849fdac1c60bb1c419 (patch)
treed278121cf18333f64ece747ec7eb0891ef1b9134 /numpy/lib/nanfunctions.py
parent5d54ba0d52e66368c948c0e5fb83cac83e71eb50 (diff)
downloadnumpy-0b7fe8a68047ba20e220d9849fdac1c60bb1c419.tar.gz
Make warnings for nanmin and nanmax consistent
Diffstat (limited to 'numpy/lib/nanfunctions.py')
-rw-r--r--numpy/lib/nanfunctions.py2
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)