[SciPy-User] How to disable warning display ?

3,530 views
Skip to first unread message

Mohammad Abdollahi

unread,
Sep 12, 2010, 7:33:22 AM9/12/10
to SciPy Users List
Dear All,

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 ?

Kind Regards

Pauli Virtanen

unread,
Sep 12, 2010, 7:41:02 AM9/12/10
to scipy...@scipy.org

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)

_______________________________________________
SciPy-User mailing list
SciPy...@scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-user

Reply all
Reply to author
Forward
0 new messages