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: object

A 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’)

on_select_molec() None[source]

Handle molecule selection change.

on_select_isotope() None[source]

Handle isotope selection change.

select_LR_list(internal_call, use_hr_lineslist_for_lr: bool = False)[source]
on_select_condensed()[source]
get_name() Tuple[str, str | None][source]

Get the current name selection.

Returns:

  • The selected name (from label, element dropdown, or sub-isotope)

  • The isotope name (if applicable, otherwise None)

Return type:

Tuple containing