init_igamma_linear

zdm.energetics.init_igamma_linear(gammas: list, reinit: bool = False, log: bool = False)[source]

Initialize linear interpolators for the upper incomplete gamma function.

Alternative to spline interpolation using scipy’s interp1d.

Parameters:
  • gammas (list of float) – Values of gamma for which to create interpolators.

  • reinit (bool, optional) – If True, reinitialize even if interpolator exists. Default False.

  • log (bool, optional) – If True, perform interpolation in log10 space. Default False.