Skip to content

Switch from the deprecated `interp2d` to `RegularGridInterpolator`

Charlie Hoy requested to merge deprecated_interp2d into master

The purpose of this MR is to switch from the deprecated interp2d to RegularGridInterpolator. Although either RegularGridInterpolator or RectBivariateSpline can be used as a one-to-one replacement, I opted for RegularGridInterpolator since it allows for interpolation outside of the domain of the input data via the kwargs bounds_error and fill_value (same as interp2d). This is related to !793 (merged) and reverts !796 (merged).

Merge request reports