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

NumPy Trac numpy-tickets@scipy....
Wed Sep 7 05:24:59 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  |  
-------------------------------------------+--------------------------------
Changes (by samueljohn):

  * keywords:  => RuntimeWarning, absolute, nan
  * version:  1.6.0 => devel
  * component:  Other => numpy.core
  * milestone:  Unscheduled => 1.6.2


Comment:

 I'd like to add that this warning is also issued for NumPy 2.0.0.dev-
 900d82e on OS X Lion 10.7.1 with Python version 2.7.2 built with homebrew
 (default, Sep  5 2011, 10:50:07) [GCC 4.2.1 (Based on Apple Inc. build
 5658) (LLVM build 2335.15.00)].
 I assume that this warning is also present in 1.6.x of numpy

 I built NumPy as suggested:
 {{{
 export CC=gcc-4.2
 export CXX=g++-4.2
 export FFLAGS=-ff2c
 python setup.py build --fcompiler=gfortran
 python setup.py install
 }}}

 Here is the excerpt of the warning that is printed during the nose tests
 of numpy.
 {{{
 numpy/core/numeric.py:2020: RuntimeWarning: invalid value encountered in
 absolute
   return all(less_equal(absolute(x-y), atol + rtol * absolute(y)))
 }}}

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


More information about the NumPy-Tickets mailing list