I currently have the IVP solver working with an event, which looks like this:
sol = solve_ivp(fun3, (0, tend), V, method='LSODA', events= event, args=(r_s,), t_eval=t)
However I want the solver to check two event, not one. So I want something like this:
sol = solve_ivp(fun3, (0, tend), V, method='LSODA', events= (event, event2), args=(r_s,), t_eval=t)
However that doesn't work.
Does anybody know how to check for multiple events?
It works! PyCharm showed a warning, but it actually works