neclib.data.extrapolate#

Aliases#

Interpolator

Interpolate Python objects.

class LinearExtrapolate(align_by=None, attrs=None)[source]#

Bases: Interpolator[T]

Extrapolate Python objects.

Example

>>> ext = neclib.data.interpolate.LinearInterp(align_by="x", attrs=["x", "y"])
>>> x = SimpleNamespace(x=4)
>>> xs = [SimpleNamespace(x=0, y=0), SimpleNamespace(x=2, y=100)]
>>> ext(x, xs)
SimpleNamespace(x=4.0, y=200.0)
Parameters:
  • align_by (Optional[str]) –

  • attrs (Optional[Sequence[str]]) –