[Numpy-discussion] Somewhat goofy warning in 'isfinite'?

2010-02-20 Thread Matthew Brett
Hi,

I just noticed this:

In [2]: np.isfinite(np.inf)
Warning: invalid value encountered in isfinite
Out[2]: False

Maybe it would be worth not raising the warning, in the interests of tidiness?

Matthew
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Somewhat goofy warning in 'isfinite'?

2010-02-20 Thread David Warde-Farley
On 20-Feb-10, at 2:48 PM, Matthew Brett wrote:

 Hi,

 I just noticed this:

 In [2]: np.isfinite(np.inf)
 Warning: invalid value encountered in isfinite
 Out[2]: False

 Maybe it would be worth not raising the warning, in the interests of  
 tidiness?

I think these warnings somehow got turned on recently in the trunk, I  
see tons of them when I run the tests despite what np.seterr says.

David
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion