GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.TabPanels.Frame_Parameters.PanelParameters module¶
Panel for managing and displaying parameter settings in the GUI.
This module provides a panel interface for configuring various parameters used in the application, including temperature profiles, chemistry settings, and instrument configurations.
- class GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.TabPanels.Frame_Parameters.PanelParameters.PanelParameters(parent: Any, row: int, column: int, color: str, path_default: str, **kwargs)[source]¶
Bases:
MyPanelPanel for managing parameter settings in the GUI.
This class provides a comprehensive interface for configuring various parameters used in the application, including temperature profiles, chemistry settings, and instrument configurations.
- parent¶
Parent widget
- path_default¶
Default path for file operations
- path_folder_targets¶
Path where the folder of targets is found
- target_information¶
Information about the current target
- list_hr_instrument¶
List of high-resolution instruments
- list_lr_instrument¶
List of low-resolution instruments
- global_exc¶
Global execution flag
- param_names_list¶
List of parameter names
- multi_params_list¶
List of multiple parameters
- list_panel¶
List of parameter panels
- list_params_widget¶
List of parameter widgets
- list_param_multiple_values¶
List of multiple parameter values
- __init__(parent: Any, row: int, column: int, color: str, path_default: str, **kwargs) None[source]¶
Initialize the parameters panel.
- Parameters:
parent – Parent widget
row – Row position in parent’s grid
column – Column position in parent’s grid
color – Background color
path_default – Default path for file operations
**kwargs – Additional keyword arguments
- get_index_arrays(param_name: str) Tuple[int, int | None][source]¶
Get indices for parameter arrays.
- Parameters:
param_name – Name of the parameter
- Returns:
Index in param_names_list
Index in multi_params_list (None if not found)
- Return type:
Tuple containing
- update_molec_textfield() None[source]¶
Update the molecule text field with current molecule information.
This method is called when a new molecule is added to the retrieval list. It formats and adds the molecule’s information to the text field.
- update_condensed_molec_textfield() None[source]¶
Update the condensed molecule text field with current information.
This method is called when a new condensed molecule is added to the retrieval list. It formats and adds the molecule’s information to the text field.
- update_elem_textfield() None[source]¶
Update the element text field with current element information.
This method is called when a new element is added to the hybrid chemical equilibrium. It formats and adds the element’s information to the text field.
- update_params_vmr_func() None[source]¶
Update VMR (Volume Mixing Ratio) parameters.
This method updates the VMR parameters based on the current molecule list. It calculates and sets values for vmr_peak, pressure_peak, and width_peak parameters.
- update_LR() None[source]¶
Update low-resolution offset parameter based on resolution mode.
This method enables/disables the low-resolution offset parameter based on whether high+low resolution mode is selected.
- update_chemistry() None[source]¶
Update chemistry parameters based on chemistry mode.
This method enables/disables chemistry-related parameters (met and co_ratio) based on the selected chemistry mode in the interface.
- update_target() None[source]¶
Update target information and related parameters.
This method updates the target information and all related parameters when a new target is selected. It also triggers an update of the radiation mode settings.
- update_hr_pixeldv() None[source]¶
Update high-resolution instrument pixel information.
This method retrieves and updates the high-resolution instrument settings from the database when the instrument selection changes.
- update_lr_pixeldv() None[source]¶
Update low-resolution instrument pixel information.
This method retrieves and updates the low-resolution instrument settings from the database when the instrument selection changes.
- update_night() None[source]¶
Update night information for the current target.
This method retrieves and updates the available nights for the current target and instrument configuration.
- update_tp_params() None[source]¶
Update temperature profile parameters based on selected profile type.
This method enables/disables temperature profile parameters based on the selected profile type (isothermal, Madhu, Guillot, etc.).
- scattering_check() None[source]¶
Update scattering parameters based on scattering checkbox state.
This method enables/disables scattering-related parameters (k0 and gamma) based on whether scattering is enabled in the interface.
- ecc_opi_check() None[source]¶
Update eccentricity parameters based on eccentricity checkbox state.
This method enables/disables eccentricity-related parameters (h_ecc and k_ecc) based on whether eccentricity is enabled in the interface.
- update_from_rad_mode() None[source]¶
Update instrument lists and dropdowns based on radiation mode.
This method updates the high and low resolution instrument lists and recreates their dropdown menus when the radiation mode changes.
- include_h_m() None[source]¶
Update hydrogen-related parameters and continuum opacity.
This method updates the continuum opacity text field and enables/disables hydrogen-related parameters (H, H-, e-) based on the include_h_m checkbox state.
Update hydrogen-related parameter values.
This method calculates and updates the values for H, H-, and e- parameters based on the current H2 and He values.