Open JanWeldert opened 3 months ago
I'm finding a few more occurrences: https://github.com/search?q=repo%3Aicecube%2Fpisa%20interp1d&type=code
Scipy docs suggest the following replacement for "broken-line" interpolation: https://docs.scipy.org/doc/scipy/tutorial/interpolate/1D.html#piecewise-linear-interpolation
But in the numpy version you have to do the interpolation again every time you want to evaluate it.
We use
from scipy.interpolate import interp1d
in multiple parts of the code, namelyAt the moment we are safe because we limit the scipy version, but in the future when we allow for newer versions of scipy this might become a problem.