From cb3fb06b904dbdd71cf4a1bfd9c7e4b32332c7b9 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Wed, 26 May 2010 02:55:09 +0000 Subject: BUG: Fix failed detection of unsigned integers in _nanop. Fixes ticket #1300. --- numpy/lib/function_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy') 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... -- cgit v1.2.1