Set numpy so it does not print out warnings on student input

This commit is contained in:
Peter Baratta
2013-06-05 15:50:35 -04:00
parent a85a7f71df
commit 83f1f9c2fc

View File

@@ -13,6 +13,10 @@ import re
import numpy
import scipy.constants
# have numpy raise errors on functions outside its domain
# See http://docs.scipy.org/doc/numpy/reference/generated/numpy.seterr.html
numpy.seterr(all='ignore') # Also: 'ignore', 'warn' (default), 'raise'
from pyparsing import (Word, nums, Literal,
ZeroOrMore, MatchFirst,
Optional, Forward,