pyampp.gxbox.gxampp
Attributes
Classes
Main application GUI for the Solar Data Model. |
Functions
|
Entry point for the PyAmppGUI application. |
Module Contents
- class pyampp.gxbox.gxampp.PyAmppGUI[source]
Bases:
PyQt5.QtWidgets.QMainWindowMain application GUI for the Solar Data Model.
This class creates the main window and sets up the user interface for managing solar data and model configurations.
- central_widget
The central widget of the main window.
- Type:
QWidget
- main_layout
The main layout for the central widget.
- Type:
QVBoxLayout
- initUI():
Initializes the user interface.
- add_data_repository_section():
Adds the data repository section to the UI.
- update_sdo_data_dir():
Updates the SDO data directory path.
- update_gxmodel_dir():
Updates the GX model directory path.
- update_external_box_dir():
Updates the external box directory path.
- update_dir(new_path, default_path):
Updates the specified directory path.
- open_sdo_file_dialog():
Opens a file dialog for selecting the SDO data directory.
- open_gx_file_dialog():
Opens a file dialog for selecting the GX model directory.
- open_external_file_dialog():
Opens a file dialog for selecting the external box directory.
- add_model_configuration_section():
Adds the model configuration section to the UI.
- add_options_section():
Adds the options section to the UI.
- add_cmd_display():
Adds the command display section to the UI.
- add_cmd_buttons():
Adds command buttons to the UI.
- add_status_log():
Adds the status log section to the UI.
- update_command_display():
Updates the command display with the current command.
- update_hpc_state(checked):
Updates the UI when Helioprojective coordinates are selected.
- update_hgc_state(checked):
Updates the UI when Heliographic Carrington coordinates are selected.
- get_command():
Constructs the command based on the current UI settings.
- execute_command():
Executes the constructed command.
- save_command():
Saves the current command.
- refresh_command():
Refreshes the current session.
- clear_command():
Clears the status log.
- update_jsoc_notify_email()[source]
Updates the JSOC notify email via the PYAMPP_JSOC_NOTIFY_EMAIL environment variable.
- update_dir(new_path, default_path, target_edit=None)[source]
Updates the specified directory path.
- Parameters:
new_path (str) – The new directory path.
default_path (str) – The default directory path.
- apply_geometry_selection(selection: pyampp.gxbox.selector_api.BoxGeometrySelection) None[source]
Apply an accepted geometry selection (e.g., from a future standalone FOV selector) to the existing pyAMPP GUI input fields.
- apply_selector_result(result: pyampp.gxbox.selector_api.SelectorDialogResult) None[source]
Apply a full selector dialog result to GUI-visible and hidden state.
- update_hpc_state(checked, coords_center=None)[source]
Updates the UI when Helioprojective coordinates are selected.
- Parameters:
checked (bool) – Whether the Helioprojective radio button is checked.
- update_hgc_state(checked, coords_center=None)[source]
Updates the UI when Heliographic Carrington coordinates are selected.
- Parameters:
checked (bool) – Whether the Heliographic Carrington radio button is checked.
- update_hgs_state(checked, coords_center=None)[source]
Updates the UI when Heliographic Stonyhurst coordinates are selected.
- Parameters:
checked (bool) – Whether the Heliographic Stonyhurst radio button is checked.
- pyampp.gxbox.gxampp.main(debug: bool = typer.Option(False, '--debug', help='Enable debug mode with an interactive IPython session.'))[source]
Entry point for the PyAmppGUI application.
This function initializes the PyQt application and displays the main GUI window. Session/default field state is established inside
PyAmppGUIduring startup.- Parameters:
debug (bool, optional) – Enable debug mode with an interactive IPython session, defaults to False
- Raises:
SystemExit – Exits the application loop when the GUI is closed
- Returns:
None
- Return type:
NoneType
Examples
pyampp