[NumPy-Tickets] [NumPy] #1905: numpy/core/numeric/allclose() fails to test for NaN inputs

NumPy Trac numpy-tickets@scipy....
Wed Sep 7 15:22:43 CDT 2011


#1905: numpy/core/numeric/allclose() fails to test for NaN inputs
-------------------------------------------+--------------------------------
 Reporter:  robertpyle                     |       Owner:  somebody
     Type:  defect                         |      Status:  new     
 Priority:  normal                         |   Milestone:  1.6.2   
Component:  numpy.core                     |     Version:  devel   
 Keywords:  RuntimeWarning, absolute, nan  |  
-------------------------------------------+--------------------------------

Comment(by rgommers):

 Can you run the tests with
 {{{
 numpy.test(verbose=2)
 }}}
 to determine which test the warning comes from?  It looks like there is a
 NaN in x or y, which may indicate a problem, or it could be the test
 actually intends to put in a NaN. If so, the warning can be silenced by
 enclosing the relevant line of code with
 {{{
 olderr = np.seterr(invalid='ignore')
 try:
     <test code>
 finally:
     np.seterr(**olderr)
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1905#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list