[Numpy-discussion] How do I make numpy raise exceptions instead of print warnings?

Robert Kern robert.kern@gmail....
Sat Mar 29 17:05:42 CDT 2008


On Sat, Mar 29, 2008 at 4:25 PM, Roy H. Han <rhh2109@columbia.edu> wrote:
> Is there a way to have numpy raise exceptions instead of printing
>  warnings?  The printed warnings make debugging hard.

numpy.seterr()

Read the docstring for the various options.

-- 
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