numpy.errstate#

class numpy.errstate(**kwargs)[source]#

Context manager for floating-point error handling.

Using an instance of errstate as a context manager allows statements in that context to execute with a known error handling behavior. Upon entering the context the error handling is set with seterr and