Simulation GUI
- class pymoskito.simulation_gui.SimulationGui[source]
The graphical user interface of PyMoskito
- apply_regime_by_name(regime_name)[source]
Apply the regime given by regime_name und update the regime index.
- Returns:
True if successful, False if errors occurred.
- Return type:
bool
- export_simulation_data(ok)[source]
Query the user for a custom name and export the current simulation results.
- Parameters:
ok – unused parameter from QAction.triggered() Signal
- new_simulation_data(status, data)[source]
Slot to be called when the simulation interface has completed the current job and new data is available.
- Parameters:
status (str) – Status of the simulation, either - finished : Simulation has been finished successfully or - failed : Simulation has failed.
data (dict) – Dictionary, holding the simulation data.
- plot_data_vector(item)[source]
Creates a plot widget based on the given item.
If a plot for this item is already open no new plot is created but the existing one is raised up again.
- Parameters:
item (Qt.ListItem) – Item to plot.
- pymoskito.simulation_gui.run(regimes=None, show=True, execute=False, exit_after=False)[source]
Helper function to launch the PyMoskito GUI
- Parameters:
regimes (String) – Path to a regime file to load
show (bool) – If true, show the GUI otherwise operate in headless mode
execute (bool) – If true, simulate all loaded regimes
exit_after (bool) – If true, exit after all regimes are simulated