[Numpy-discussion] should get rid of the annoying numpy STDERR output

eat e.antero.tammi at gmail.com
Thu Mar 24 07:02:19 EDT 2011


Hi

2011/3/24 Dmitrey <tmp50 at ukr.net>

>  >>> from numpy import inf, array
> >>> inf*0
> nan
>
> (ok)
>
> >>> array(inf) * 0.0
> StdErr: Warning: invalid value encountered in multiply
> nan
>
> My cycled calculations yields this thousands times slowing computations and
> making text output completely non-readable.
>
Would old= seterr(invalid= 'ignore') be sufficient for you?

Regards,
eat

>
> >>> from numpy import __version__
> >>> __version__
> '2.0.0.dev-1fe8136'
>
> D.
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110324/1c7d823b/attachment.html>


More information about the NumPy-Discussion mailing list