[Numpy-tickets] [NumPy] #956: ValueError: cannot convert float NaN to integer

NumPy numpy-tickets@scipy....
Thu Nov 20 03:30:37 CST 2008


#956: ValueError: cannot convert float NaN to integer
----------------------+-----------------------------------------------------
 Reporter:  cdavid    |        Owner:  pierregm
     Type:  defect    |       Status:  new     
 Priority:  normal    |    Milestone:  1.3.0   
Component:  numpy.ma  |      Version:  none    
 Severity:  normal    |   Resolution:          
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by cdavid):

  * summary:  ======================================================================
ERROR: Tests the min/max functions with explicit outputs
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/python26/lib/python2.6/site-
              packages/numpy/ma/tests/test_core.py", line
              688, in test_minmax_funcs_with_output
    result = npfunc(xm,axis=0,out=nout)
  File "/opt/python26/lib/python2.6/site-
              packages/numpy/core/fromnumeric.py", line 1525,
              in amin
    return amin(axis, out)
  File "/opt/python26/lib/python2.6/site-
              packages/numpy/ma/core.py", line 2882, in min
    np.putmask(out, newmask, np.nan)
ValueError: cannot convert float NaN to integer =>
              ValueError: cannot convert float NaN to integer

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/956#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list