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

Robert Kern robert.kern at gmail.com
Sat Mar 29 18:05:42 EDT 2008


On Sat, Mar 29, 2008 at 4:25 PM, Roy H. Han <rhh2109 at 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