MCPcopy Index your code
hub / github.com/pydata/xarray / _import_interpolant

Function _import_interpolant

xarray/core/missing.py:476–483  ·  view source on GitHub ↗

Import interpolant from scipy.interpolate.

(interpolant, method)

Source from the content-addressed store, hash-verified

474
475
476def _import_interpolant(interpolant, method):
477 """Import interpolant from scipy.interpolate."""
478 try:
479 from scipy import interpolate
480
481 return getattr(interpolate, interpolant)
482 except ImportError as e:
483 raise ImportError(f"Interpolation with method {method} requires scipy.") from e
484
485
486def _get_interpolator(

Callers 2

_get_interpolatorFunction · 0.85
_get_interpolator_ndFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…