emission_data package
Define objects to store electron emission data.
- class DataMatrix
Bases:
objectStore all the input files and corresp data in a single object.
Instantiate the object.
- _indexes_to_natures(row, col)
Give the desired natures.
- _natures_to_indexes(population_type, emission_data_type)
Give the desired indexes.
- property all_energy_distribution: EmissionEnergyDistribution
Return the energy distribution of all emitted electrons.
- get_data(row=None, col=None, population=None, emission_data_type=None)
Get the file(s) by index or name.
You can provide
rowandcoldirectly.Alternatively, provide
populationandemission_data_type. Ifpopulationis not given, return valid data corresponding to all populations. Ifemission_data_typeis not given, return valid data corresponding to all emission data.- Parameters:
- Return type:
- Returns:
Desired data; if the specified data does not exists, a
Noneis returned without any error message.
- get_files(row=None, col=None, population=None, emission_data_type=None)
Get the file(s) by index or name.
- Return type:
None|str|Path|Collection[str] |Collection[Path]
- has_all_mandatory_files(model_config)
Tell if files defined by
Model.model_configare set.- Return type:
- load_data(loader)
Load all filepaths in
files_matrix.Todo
Could be more concise.
- Return type:
- plot(plotter, population, emission_data_type, axes=None, **kwargs)
Plot desired measured data using
plotter.This method uses
DataMatrix.get_data()to get theEmissionDatainstance matchingpopulationandemission_data_type. Then it calls theEmissionData.plot()method.- Parameters:
plotter (
Plotter) – Object realizing the plot. We transfer it to theEmissionData.plot()method.population (
Literal['SE','EBE','IBE','all'] |Collection[Literal['SE','EBE','IBE','all']]) – One or several populations to plot. If several are given, we simply recursively call this method.emission_data_type (
Literal['Emission Yield','Emission Energy','Emission Angle']) – Type of data to plot.axes (
TypeVar(T) |None, default:None) – Axes to re-use if given.kwargs – Other keyword arguments passed to the
EmissionData.plot()method.
- Return type:
- Returns:
Created axes object, or
Noneif no plot was created.
- property se_energy_distribution: EmissionEnergyDistribution
Return the energy distribution of SEs.
- property seey: EmissionYield
Return the SEEY directly.
- set_data(emission_data, row=None, col=None, population=None, emission_data_type=None)
Set the data by index or name.
- Return type:
- set_files(files, row=None, col=None, population=None, emission_data_type=None)
Set the file(s) by index or name.
- Return type:
- property teey: EmissionYield
Return the TEEY directly.
Submodules
- data_matrix module
MissingDataErrorDataMatrixDataMatrix._natures_to_indexes()DataMatrix._indexes_to_natures()DataMatrix.set_files()DataMatrix.set_data()DataMatrix.get_files()DataMatrix.get_data()DataMatrix.load_data()DataMatrix.has_all_mandatory_files()DataMatrix.plot()DataMatrix.teeyDataMatrix.seeyDataMatrix.se_energy_distributionDataMatrix.all_energy_distribution
- emission_angle_distribution module
- emission_data module
- emission_energy_distribution module
EmissionEnergyDistributionEmissionEnergyDistribution.e_peak_seEmissionEnergyDistribution.i_peak_ebeEmissionEnergyDistribution.e_peak_ebeEmissionEnergyDistribution.e_peEmissionEnergyDistribution.normEmissionEnergyDistribution.from_filepath()EmissionEnergyDistribution.labelEmissionEnergyDistribution.plot()EmissionEnergyDistribution._normalize()EmissionEnergyDistribution._se_ebe_limitEmissionEnergyDistribution._find_SE_peak()EmissionEnergyDistribution._find_EBE_peak()
- emission_yield module
- helper module