numpy.seterr(all=None, divide=None, over=None, under=None, invalid=None) [source]
Set how floating-point errors are handled. Note that operations on integer scalar types (such as int16) are handled like floating point, and are affected by these settings. Parameters:
all : {?ignore?, ?warn?, ?raise?, ?call?, ?print?, ?log?}, optional Set treatment for all types of floating-point errors at once: ignore: Take no action when the exception occurs. warn: Print a RuntimeWarning (via the Python w