The default is to not change the current behavior. If
behaviors for additional categories of special-function errors
are specified, then all is applied first, followed by the
additional categories.
singular : {‘ignore’, ‘warn’, ‘raise’}, optional Treatment for singularities.
underflow : {‘ignore’, ‘warn’, ‘raise’}, optional
overflow : {‘ignore’, ‘warn’, ‘raise’}, optional
slow : {‘ignore’, ‘warn’, ‘raise’}, optional Treatment for slow convergence.
loss : {‘ignore’, ‘warn’, ‘raise’}, optional Treatment for loss of accuracy.
no_result : {‘ignore’, ‘warn’, ‘raise’}, optional Treatment for failing to find a result.
domain : {‘ignore’, ‘warn’, ‘raise’}, optional Treatment for an invalid argument to a function.
arg : {‘ignore’, ‘warn’, ‘raise’}, optional Treatment for an invalid parameter to a function.
other : {‘ignore’, ‘warn’, ‘raise’}, optional Treatment for an unknown error.
Returns:
olderr : dictDictionary containing the old settings.
geterr get the current way of handling special-function errors
errstate context manager for special-function error handling
numpy.seterr similar numpy function for floating-point errors
Examples
(
-
1
)
_
=
sc
.
seterr
(
**
olderr
)