gui module
Define a GUI.
Todo
Export/Import settings
Todo
logging module
Todo
Add measurables at bottom
- class MainWindow(default_model: str = 'Vaughan', default_loader: str = 'PandasLoader', default_plotter: str = 'PandasPlotter')
Bases:
QMainWindowThis object holds the GUI.
- autofill_data_to_plot = True
If selecting Model in dropdown should automatically fill the appopriate data to plot checkbox
- autofill_nature_to_plot = True
If selecting Model in dropdown should automatically fill the appopriate emission data checkbox
- autofill_plotting_ranges = True
If loading data should automatically fill the energy/angle ranges with their maximum values
- __init__(default_model: str = 'Vaughan', default_loader: str = 'PandasLoader', default_plotter: str = 'PandasPlotter') None
Create the GUI.
- setup_file_selection_matrix() list[list[None | QListWidget]]
Create the 4 * 3 matrix to select the files to load.
- setup_model_dropdown() None
Set the
Modelrelated interface.Assign the
model_classesandmodel_dropdown.
- setup_model_configuration() QTableWidget
Set the interface related to the model specific parameters.
- _update_parameter_value_from_table(item: QTableWidgetItem) None
Update
Parametervalue based on user input in table.
- _populate_parameters_table_values() None
Print out the values of the model parameters in dedicated table.
- _fill_plot_nature_and_population() None
Check emission data type and population.
When model is updated, check the
Data to plotandPopulation to plotcheckboxes in thePlotsection that are concerned by current model.
- _set_up_population_to_plot_checkboxes() None
Add checkbox to select which population should be plotted.
- _get_emission_data_type_to_plot() tuple[bool, Literal['Emission Yield', 'Emission Energy', 'Emission Angle'] | None]
Read input to determine the emission data type to plot.
- _get_populations_to_plot() tuple[bool, list[Literal['SE', 'EBE', 'IBE', 'all']]]
Read input to determine the populations to plot.
- _gen_linspace(variable: Literal['energy', 'angle']) tuple[bool, ndarray]
Take the desired input, check validity, create array of values.
- _fill_plotting_ranges() None
Fill energy and angle plotting ranges to match data files values.
This method is called when the button
Loadis pressed.
- _dropdown_to_class(name: Literal['Loader', 'Model', 'Plotter']) ABCMeta
Convert dropdown entry to class.
- main()