diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-10-23 13:40:37 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-23 13:40:37 -0600 |
commit | 288cbb33e4a50e165a3076e9d720f39d5d076ce8 (patch) | |
tree | f2a83986cd28e506eab477e9a600e3ffde577f75 /numpy/lib/nanfunctions.py | |
parent | 34337e02b6b2bb792d2997b4bac9a91001099b92 (diff) | |
parent | 0b7fe8a68047ba20e220d9849fdac1c60bb1c419 (diff) | |
download | numpy-288cbb33e4a50e165a3076e9d720f39d5d076ce8.tar.gz |
Merge pull request #9904 from equaeghe/patch-1
MAINT: 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) |