GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.TabPanels.Frame_Parameters.Class_Parameter_Panel module¶
- class GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.TabPanels.Frame_Parameters.Class_Parameter_Panel.ParametersGUI(parent: Any, row: int, color: str, elements: List[Any], status: str, chemical_formula: str | None = None, molecs=None, isotopes: dict | None = None, opacity_line_lists_HR: dict | None = None, opacity_line_lists_LR: dict | None = None, isotope_masses: dict | None = None, elems: List[str] | None = None, condensed_molecs_list=None, condensed_molecs_masses=None, condensed_molecs_names=None, condensed_visualization_name=None)[source]¶
Bases:
objectA GUI panel for managing parameter inputs and configurations.
This class creates and manages a row of input widgets for parameters including: - Molecular/Element selection - Presence checkbox - Value input - Scale input - Range inputs (min/max) - Mass input - Prior sigma input - VMR (Volume Mixing Ratio) settings
- __init__(parent: Any, row: int, color: str, elements: List[Any], status: str, chemical_formula: str | None = None, molecs=None, isotopes: dict | None = None, opacity_line_lists_HR: dict | None = None, opacity_line_lists_LR: dict | None = None, isotope_masses: dict | None = None, elems: List[str] | None = None, condensed_molecs_list=None, condensed_molecs_masses=None, condensed_molecs_names=None, condensed_visualization_name=None) None[source]¶
Initialize the ParametersGUI panel.
- Parameters:
parent – Parent widget
row – Row number in parent widget
color – Color scheme for widgets
elements – List of element configurations [name, present, molec, value, scale, range_min, range_max, rayleigh, bestpars, mass, prior, constant_vmr]
status – Initial status of widgets
chemical_formula – Optional chemical formula
molecs – Optional list of molecules
isotopes – Optional dictionary of isotopes
opacity_line_lists_HR – Optional dictionary of line lists at HR
opacity_line_lists_LR – Optional dictionary of line lists at LR
isotope_masses – Optional dictionary of isotope masses
elems – Optional list of elements
- get_rayleigh_value()[source]¶
Get the rayleigh value: from dropdown if molecule, otherwise fixed value.
- get_mass_value()[source]¶
Get the mass value: from widget if molecule/condensed, otherwise fixed value.
- get_constant_vmr_value()[source]¶
Get the constant VMR value: from widget if molecule/condensed, otherwise fixed value.
- disable_param_status(status: str) None[source]¶
Update the status of all parameter widgets.
- Parameters:
status – The new status to set (‘disabled’ or ‘normal’)
- reload_opacities() None[source]¶
Rebuild this row’s molecule/opacity dropdowns from a fresh disk scan.
Re-reads the available species and line lists from the petitRADTRANS opacity folders and recreates the dropdowns coherently - same placement and callbacks as the initial setup. Selection resets to the first available entry (as at first load). Rows that are not molecule/condensed selectors (elements, plain labels) are a no-op.