Closed fblasutt closed 1 year ago
Oh, now I realize my mistake: the correct keyword in eval_spline is "order", not "k".
I think it could be helpful to change the part of the docs on this page after "To interpolate values:.." and write
eval_spline(G, C, P, out=None, order=3, diff="None", extrap_mode="linear")
instead of
eval_spline(G, C, P, out=None, k=3, diff="None", extrap_mode="linear")
Yep. Well done!
Actually, in the next release, I will change the argument order
to k
.
Because:
prefilter(x,v,k=...)
Also I'm reopening this issue and changing the title to track the matter.
Pff, I confounded it with the other issue. closing again.
Hello,
I need to interpolate a point using a jit function, where interpolation also needs to happen within a jit function. I get an error when I use eval_spline, while eval_cubic works. I could reproduce my error using this simple code:
I get the following traceback:
I use Python 3.9.17, numba 0.57.0, and numpy 1.24.3. Do you have any idea of why I am getting this error, while eval_cubic works? If I omit keyword k in eval_spline, I get:
I would like to use eval_spline in the next step of my project to compute derivatives (not in this example yet). Thank you in advance for your help.