GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.TabPanels.FrameManualModel.ParamClassForManualPlot module

class GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.TabPanels.FrameManualModel.ParamClassForManualPlot.ParamClassForManualPlot(parent, row, col, name, value, present, status, molec_line=None, mass_molec=None, color=None, molecs=None, isotopes=None, opacity_line_lists=None, isotope_masses=None, rayleigh=False, type_params='Linear', single_dropdown=False)[source]

Bases: object

A simplified class to handle manual plot parameters in the GUI.

This class manages parameter widgets with only the essential fields: - Name (label or dropdown for molecules) - Present (checkbox) - Value (entry field) - Type (Linear/Log10 label)

__init__(parent, row, col, name, value, present, status, molec_line=None, mass_molec=None, color=None, molecs=None, isotopes=None, opacity_line_lists=None, isotope_masses=None, rayleigh=False, type_params='Linear', single_dropdown=False)[source]

Initialize the parameter panel for manual plotting.

Parameters:
  • parent – Parent panel for the parameter

  • row – Row position in the grid

  • col – Column position in the grid

  • name – Name of the parameter

  • value – Initial value of the parameter

  • present – Initial presence state

  • status – Initial status of the parameter

  • molec_line – If not None, creates molecular selection dropdowns

  • mass_molec – Molecular mass (stored but not displayed)

  • color – Color scheme for the panel

  • molecs – List of molecules (for dropdown)

  • isotopes – Dictionary of isotopes (for dropdown)

  • opacity_line_lists – Dictionary of opacity_line_lists (for dropdown)

  • isotope_masses – Dictionary of isotope masses

  • rayleigh – Rayleigh flag (stored but not displayed)

  • type_params – Type of parameters (“Linear” or “Log10”)

  • single_dropdown – If True with molec_line, creates only one dropdown instead of three

get_rayleigh_value()[source]

Get the rayleigh value: from dropdown if molecule, otherwise fixed value.

parameter_status(state)[source]

Update the status of parameter widgets.

get_name()[source]

Get the name and molecular information for retrieval.

get_value()[source]

Get the parameter value(s).

is_considered()[source]

Check if the parameter should be considered in calculations.

on_select_single_dropdown()[source]

Handle single dropdown selection change (for condensed molecules).

on_select_isotope()[source]

Handle isotope selection change.

on_select_molec()[source]

Handle molecule selection change.