[Numpy-discussion] Warning messages after upgrading to 1.0.1

Robert Kern robert.kern at gmail.com
Thu Jan 11 16:37:34 EST 2007


Keith Goodman wrote:
> I get lots of warning messages after upgrading from 1.0rc1 to 1.0.1:
> 
> Warning: divide by zero encountered in divide
> Warning: invalid value encountered in log
> Warning: invalid value encountered in subtract
> Warning: invalid value encountered in multiply
> 
> What's a good way to turn off the warnings?

seterr(all='ignore')

-- 
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 NumPy-Discussion mailing list