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

eat e.antero.tammi@gmail....
Thu Mar 24 06:02:19 CDT 2011


Hi

2011/3/24 Dmitrey <tmp50@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@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20110324/1c7d823b/attachment.html 


More information about the NumPy-Discussion mailing list