Thank you, Robert! numpy.seterr() is very helpful. It is just what I needed.
numpy.seterr(all = 'raise') forces numpy to raise exceptions instead of printing warnings. [begin quote] numpy.seterr(all = None, divide = None, over = None, under = None, invalid = None) Valid values for each type of error are the strings "ignore", "warn", "raise", and "call". [end quote] Date: Sat, 29 Mar 2008 17:05:42 -0500 From: "Robert Kern" <[EMAIL PROTECTED]> On Sat, Mar 29, 2008 at 4:25 PM, Roy H. Han <[EMAIL PROTECTED]> 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 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion