SciPy

scipy.integrate.ode.get_return_code

ode.get_return_code()[source]

Extracts the return code for the integration to enable better control if the integration fails.