scipy.special.
geterr#
- scipy.special.geterr()#
Get the current way of handling special-function errors.
- Returns:
- errdict
A dictionary with keys “singular”, “underflow”, “overflow”,“slow”, “loss”, “no_result”, “domain”, “arg”, and “other”,whose values are from the strings “ignore”, “warn”, and“raise”. The keys represent possible special-function errors,and the values define how these errors are handled.
See also
seterrset how special-function errors are handled
errstatecontext manager for special-function error handling
numpy.geterrsimilar numpy function for floating-point errors
Notes
For complete documentation of the types of special-function errorsand treatment options, see
seterr.Examples
By default all errors are ignored.
>>>importscipy.specialassc>>>forkey,valueinsorted(sc.geterr().items()):...print(f'{key}:{value}')...arg: ignoredomain: ignoreloss: ignorememory: raiseno_result: ignoreother: ignoreoverflow: ignoresingular: ignoreslow: ignoreunderflow: ignore
On this page