diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2010-05-26 02:55:09 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2010-05-26 02:55:09 +0000 |
commit | cb3fb06b904dbdd71cf4a1bfd9c7e4b32332c7b9 (patch) | |
tree | 524a54b6acac645f42e9013b27fa7fdbc1101d3f /numpy/lib/function_base.py | |
parent | dccd8d0d688d479dfe26361eb3f18745fe690c10 (diff) | |
download | numpy-cb3fb06b904dbdd71cf4a1bfd9c7e4b32332c7b9.tar.gz |
BUG: Fix failed detection of unsigned integers in _nanop. Fixes ticket #1300.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 5504a0f99..d35b0efd2 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -1298,7 +1298,7 @@ def _nanop(op, fill, a, axis=None): mask = isnan(a) # We only need to take care of NaN's in floating point arrays - if not np.issubdtype(y.dtype, int): + if not np.issubdtype(y.dtype, np.integer): # y[mask] = fill # We can't use fancy indexing here as it'll mess w/ MaskedArrays # Instead, let's fill the array directly... |