[SciPy-User] How to disable warning display ?
Pauli Virtanen
pav at iki.fi
Sun Sep 12 07:41:02 EDT 2010
Sun, 12 Sep 2010 13:33:22 +0200, Mohammad Abdollahi wrote:
> I keep getting a long list of stupid warnings when i'm running my code.
> I was just wondering if anybody knows how to disable warning printing at
> the output, as it takes a lot of time. i just dont want them to be
> printed. any idea ?
http://docs.scipy.org/doc/numpy/reference/generated/numpy.seterr.html
and
http://docs.python.org/library/warnings.html
e.g.
warnings.simplefilter("ignore", DeprecationWarning)
More information about the SciPy-User
mailing list