equinor / xtgeo

XTGeo Python class library for subsurface Surfaces, Cubes, Wells, Grids, Points, etc
https://xtgeo.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
109 stars 57 forks source link

Replace usage of `scipy.interpolate.interp1d` #1158

Closed mferrera closed 7 months ago

mferrera commented 8 months ago

This is used in a few places in the code and is considered by scipy to be a legacy method that may be deprecated.

https://docs.scipy.org/doc/scipy/tutorial/interpolate/1D.html#legacy-interface-for-1-d-interpolation-interp1d https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp1d.html

https://github.com/equinor/xtgeo/blob/09dadec7f852852426444d853837e96ddbf21e66/src/xtgeo/xyz/_xyz_oper.py#L8 https://github.com/equinor/xtgeo/blob/09dadec7f852852426444d853837e96ddbf21e66/src/xtgeo/surface/_regsurf_cube_window_v3.py#L8