bundles / scipy latest / scipy / integrate / _ivp / ivp / handle_events
function
scipy.integrate._ivp.ivp:handle_events
source: build-install/usr/lib/python3.14/site-packages/scipy/integrate/_ivp/ivp.py:80
Signature
def handle_events(sol, events, active_events, event_count, max_events, t_old, t)Summary
Helper function to handle events.
Parameters
sol: DenseOutputFunction
sol(t)which evaluates an ODE solution betweent_oldandt.events: list of callables, length n_eventsEvent functions with signatures
event(t, y).active_events: ndarrayIndices of events which occurred.
event_count: ndarrayCurrent number of occurrences for each event.
max_events: ndarray, shape (n_events,)Number of occurrences allowed for each event before integration termination is issued.
t_old, t: floatPrevious and new values of time.
Returns
root_indices: ndarrayIndices of events which take zero between
t_oldandtand before a possible termination.roots: ndarrayValues of t at which events occurred.
terminate: boolWhether a terminal event occurred.
Aliases
scipy.integrate._ivp.ivp.handle_events