eradiate.scenes.atmosphere.InterpolatorParticleDistribution

eradiate.scenes.atmosphere.InterpolatorParticleDistribution#

class eradiate.scenes.atmosphere.InterpolatorParticleDistribution(*, interpolator)[source]#

Bases: ParticleDistribution

A flexible particle distribution which redirects its calls to an encapsulated callable.

Parameters:

interpolator (callable()) – A callable with signature f(x: np.typing.ArrayLike) -> np.ndarray. Typically, a scipy.interpolate.interp1d.

Fields:

interpolator (callable()) – A callable with signature f(x: np.typing.ArrayLike) -> np.ndarray.