interp2d deprecation
It seems that fluidimage.calcul.smooth_clean
uses interp2d
from SciPy which is going to get deprecated.
I get the following message:
/home/jsalort/Documents/Python/fluidimage/fluidimage/calcul/smooth_clean.py:51: DeprecationWarning: `interp2d` is deprecated!
`interp2d` is deprecated in SciPy 1.10 and will be removed in SciPy 1.13.0.
For legacy code, nearly bug-for-bug compatible replacements are
`RectBivariateSpline` on regular grids, and `bisplrep`/`bisplev` for
scattered 2D data.
In new code, for regular grids use `RegularGridInterpolator` instead.
For scattered data, prefer `LinearNDInterpolator` or
`CloughTocher2DInterpolator`.
For more details see
`https://scipy.github.io/devdocs/notebooks/interp_transition_guide.html`
fxs = interp2d(ixvecs, iyvecs, dxs_smooth, kind="linear")
I am not sure which of the replacements would be suited to our needs. I assume that it would make sense to move to the newer alternatives, and not those that are bug-for-bug compatible with interp2d, so probably LinearNDInterpolator
.
Thoughts ?