[Numpy-discussion] numpy.test(): invalid value encountered in {isinf, divide, power, ...}

Pauli Virtanen pav+sp@iki...
Thu Jan 21 03:23:25 CST 2010


Wed, 20 Jan 2010 16:57:01 -0500, Darren Dale wrote:
[clip]
> Warning: invalid value encountered in isinf Warning: invalid value
> encountered in isfinite
[clip]

This is because of changed seterr() default values.

IMHO, the 'print' default is slightly worse than the previous 'ignore'. 
Personally, I don't see great value in the "invalid value encountered" 
reports that are appear every time a nan is generated...

-- 
Pauli Virtanen



More information about the NumPy-Discussion mailing list