eradiate.scenes.atmosphere.InterpolatorParticleDistribution#

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

Bases: eradiate.scenes.atmosphere._particle_dist.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.