[SciPy-User] Bottleneck

Robert Kern robert.kern@gmail....
Tue Nov 30 16:34:25 CST 2010

On Tue, Nov 30, 2010 at 16:30, Christopher Barker <Chris.Barker@noaa.gov> wrote:
> On 11/30/10 1:57 PM, Keith Goodman wrote:

>>> WOW! a LOT of these warnings:
>>> Warning: invalid value encountered in divide
>>> (and similar)
>> Yeah, I started getting those too when I upgraded to numpy 1.5.1. Any ideas?
> I think there was a post about it recently on the numpy list, but I
> can't find it now. I suspect something has changed with the default
> warnings settings.

Importing the ma subpackage used to have the unintentional side effect
of setting the error state to ignore these errors. This was fixed.
Unfortunately, the suggestion to change the intentional default to the
more sensible "warn" rather than "print" was lost in the shuffle.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco

More information about the SciPy-User mailing list