emission_data module

Define the base object that will store emission data.

Todo

Add an interpolate or resample method. Would be used to have more points, in particular when there is few points.

class EmissionData(population, data)

Bases: ABC

A yield, energy distribution or angular distribution.

Instantiate the data.

Parameters:
  • population (Literal['SE', 'EBE', 'IBE', 'all']) – The concerned population of electrons.

  • data (DataFrame) – Structure holding the data. Column headers as well as units must follow specications (see subclasses documentation).

abstractmethod classmethod from_filepath(population, loader, *filepath)

Instantiate the data from files.

Parameters:
  • loader (Loader) – The object that will load the data.

  • population (Literal['SE', 'EBE', 'IBE', 'all']) – The concerned population of electrons.

  • *filepath (str | Path) – Path(s) to file holding data under study.

Return type:

Self

abstract property label: str

Print markdown info.

abstractmethod plot(plotter, *args, axes=None, **kwargs)

Plot the contained data using plotter.

Return type:

TypeVar(T)