[NumPy-Tickets] [NumPy] #1300: OverflowError when nan[arg]min or nan[arg]max called on unsigned integers
NumPy Trac
numpy-tickets@scipy....
Tue May 25 21:11:38 CDT 2010
#1300: OverflowError when nan[arg]min or nan[arg]max called on unsigned integers
-----------------------+----------------------------------------------------
Reporter: tsyu | Owner: somebody
Type: defect | Status: needs_review
Priority: normal | Milestone: 1.4.1
Component: numpy.lib | Version: devel
Keywords: |
-----------------------+----------------------------------------------------
Comment(by tsyu):
Updated patch:
{{{
Index: numpy/lib/function_base.py
===================================================================
--- numpy/lib/function_base.py (revision 8441)
+++ numpy/lib/function_base.py (working copy)
@@ -1298,7 +1298,7 @@
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...
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1300#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list