On Dec 13, 2007, at 2:21 PM, Robert Kern wrote:

> Tony S Yu wrote:
>> Hello,
>>
>> This is something that's been bothering for awhile. When numpy raises
>> the following divide by zero error:
>>>>> Warning: divide by zero encountered in double_scalars
>> is there a way to get a Traceback on where that warning occurred.
>
> In [1]: from numpy import *
> In [3]: seterr(divide='raise')

seterr(divide='warn') is exactly what I was looking for.

Thanks!
-Tony
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to