[Numpy-tickets] [NumPy] #914: min is bogus if nan is in the array

NumPy numpy-tickets@scipy....
Fri Sep 19 06:52:32 CDT 2008


#914: min is bogus if nan is in the array
--------------------+-------------------------------------------------------
 Reporter:  cdavid  |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:  1.2.1   
Component:  Other   |     Version:  none    
 Severity:  major   |    Keywords:          
--------------------+-------------------------------------------------------
 {{{
 #!python
 import numpy as np
 np.min(np.array([-1, np.nan, 2]))
 }}}

 Returns 2, not the (correct) -1.

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


More information about the Numpy-tickets mailing list