scijit.integrate.ODEintWarning

exception scijit.integrate.ODEintWarning

Bases: Warning

Warning class odeint() uses.

Raised on every abnormal exit, carrying the istate message and “Run with full_output = 1 to get quantitative information.”, and on a normal exit under printmessg.

See also

scipy.integrate.ODEintWarning

The scipy warning this mirrors.

Examples

>>> import warnings
>>> import numpy as np
>>> from numba import njit
>>> import scijit.integrate as si
>>> @njit
... def rhs(y, t):
...     return -y
>>> with warnings.catch_warnings(record=True) as w:
...     warnings.simplefilter("always")
...     _ = si.odeint(rhs, np.array([1.0]), np.array([0.0, 1.0]),
...                   printmessg=1)
>>> issubclass(w[0].category, si.ODEintWarning)
True