Thanks, yes it works fine now.
I have a follow up on using m.cspline as a lookup table for
1. function evaluation as m.cspline(x_query, x_data, y_data) to give us --> y* that can be plugged into source term of ODE. Also x_query is an intermediate variable in terms of state space variable of the ODE system that I intend to simulate.
2. optimization where one can solve for the unknown values of y at the corresponding x_data, such that the difference between the predicted ode simulations, and that from point 1. above is minimized. So here, m.spline(x_query, x_data, y_unknown) to give us --> y'' that is again plugged into ode source term, to get the predict ode simulations.
I would greatly appreciate workarounds to deploy the above because right now hacking the m.cspline functionality has been a roadbloack.
Thanks and regards,
Anjana.