[Numpy-discussion] Warning: invalid value encountered in divide

Wes McKinney wesmckinn@gmail....
Mon Aug 8 18:25:32 CDT 2011


On Mon, Aug 8, 2011 at 7:01 PM, Neal Becker <ndbecker2@gmail.com> wrote:
> Warning: invalid value encountered in divide
>
> No traceback.  How can I get more info on this?  Can this warning be converted
> to an exception so I can get a trace?
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>

Try calling np.seterr(divide='raise') or np.seterr(all='raise')


More information about the NumPy-Discussion mailing list