[SciPy-User] annoying bug in isfinite - it yields warning each time

Dmitrey tmp50@ukr....
Sat Jan 23 10:33:32 CST 2010


Why numpy.isfinite yields warning like this:  
>>> __version__  
'1.5.0.dev8078' (latest, as well as lots of previous)  
  
>>> isfinite(inf)  
Warning: invalid value encountered in isfinite  
False  
>>> isfinite([inf,1.0])  
Warning: invalid value encountered in isfinite  
array([False,  True], dtype=bool)  
>>> isfinite(array([inf,1.0]))  
Warning: invalid value encountered in isfinite  
array([False,  True], dtype=bool)  
  
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20100123/99858cf5/attachment.html 


More information about the SciPy-User mailing list