I have a bit lengthier ODE function which was simulated by using Scipy solve_ivp function. During this simulation I calculated many parameters but as the output, I am taking out put only some other parameters in return function.
But now I need to get some values of some other variables I used during the intermediate steps. So is there a way I can do that?.
Note-: When I Tried to return those parameters with the main ode outputs, it says "The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part."
Highly appreciate any valuable suggestions. Better if you can show the way by using a sample code.