deesse_loader module

Define a loader adapted to DEESSE (ONERA, Toulouse) file format.

class DeesseLoader

Bases: Loader

Define the loader.

Raise an error for now.

Ideally, this loader should detect correct input and columns. But it is not for now.

load_emission_yield(*filepath)

Load and format the given emission yield files.

Parameters:

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

Returns:

Structure holding the data. Has a Energy [eV] column holding PEs energy. And one or several columns theta [deg], where theta is the value of the incidence angle and content is corresponding emission yield.

Return type:

pandas.DataFrame

_extract_incidence_angle(full_data)

Try to get the incidence angle in the file.

Return type:

float

load_emission_angle_distribution(*args)

Load the given electron emission angle distribution file.

Return type:

Any

load_emission_energy_distribution(filepath, e_pe=None)

Load and format an emission energy file from DEESSE.

Parameters:
  • filepath (str | Path) – Path to file holding data under study.

  • e_pe (float | None, default: None) – Energy of PEs in \(\mathrm{eV}\). Should be manually provided, as not present in DEESSE files.

Return type:

tuple[DataFrame, float | None]

Returns:

  • pandas.DataFrame – Structure holding the data. Has a Energy [eV] column holding emitted electrons energy. And one or several columns theta [deg], where theta is the value of the incidence angle and content is corresponding emission energy distribution.

  • float – Energy of Primary Electrons in \(\mathrm{eV}\). If not found in the file comments, it will be inferred from the position of the EBEs peak.