GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.TabPanels.FrameDBInteractions.FrameReload module

FrameReload module: maintenance buttons for the DB and Data Interactions tab.

Provides two on-demand actions:

  • Reload Targets: re-scan the targets folder and refresh the Target dropdown in every panel.

  • Reload Opacities: re-scan the petitRADTRANS opacity folders and rebuild the molecule/isotope/opacity dropdowns in the retrieval Parameters panel and the Forward Model panel.

Both delegate to InputPanel so the cascade/rebuild logic lives in a single place.

class GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.TabPanels.FrameDBInteractions.FrameReload.FrameReload(parent, color, row, column, path_default, frame_input, window, **kwargs)[source]

Bases: MyPanel

Panel hosting the Reload Targets / Reload Opacities buttons.

__init__(parent, color, row, column, path_default, frame_input, window, **kwargs)[source]

Initialize the reload panel.

Parameters:
  • parent – Parent widget.

  • color – Color scheme for the panel.

  • row – Row position in the parent layout.

  • column – Column position in the parent layout.

  • path_default – Default path for file operations.

  • frame_input – The InputPanel container (exposes reload_all_targets / reload_all_opacities).

  • window – Main window reference.

  • **kwargs – Additional keyword arguments for the parent class.

reload_targets()[source]

Refresh the Target dropdown in all panels from disk.

reload_opacities()[source]

Rebuild the molecule/opacity dropdowns in all panels from disk.