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

Matthew Brett matthew.brett at gmail.com
Sat Feb 20 14:48:44 EST 2010


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



More information about the NumPy-Discussion mailing list