GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.Frame_Cross_Correlation.Frame_LH module

Frame_LH.py

GUI panel for likelihood computation in cross-correlation analysis of exoplanet atmospheric spectra. All heavy computation is delegated to run_lh_background.py which runs as a subprocess so that the GUI stays responsive.

class GUIBRUSHR.GUI.Input_Output_Panels.Input_Panels.Frame_Cross_Correlation.Frame_LH.FrameLH(parent, color, row, column, path_default, frame_input, window, width_GUI, height_GUI, widget_nights, **kwargs)[source]

Bases: MyPanel

GUI panel for likelihood computation in cross-correlation analysis.

This class provides a user interface for setting up and running likelihood computations over grids of planetary parameters (Kp, RV, scale factor). Computation runs in a background subprocess via run_lh_background.py.

Variables:
  • target_information – Information about the target system

  • path_folder_targets – Path to target data folder

  • widget_nights – Widget containing night selection controls

  • frame_input – Input frame containing path information

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

Initialize the FrameLH panel with GUI elements.

Parameters:
  • parent – Parent widget

  • color – Background color for the panel

  • row – Grid row position

  • column – Grid column position

  • path_default – Default path for file operations

  • frame_input – Input frame containing path controls

  • window – Main window reference

  • width_GUI – GUI width for sizing calculations

  • height_GUI – GUI height for sizing calculations

  • widget_nights – Widget containing night selection controls

  • **kwargs – Additional keyword arguments for parent class

check_proc()[source]

Poll the background likelihood subprocess every 500ms.

When the process finishes, re-enables the RUN button and either displays the result plot or shows an error dialog.

lh_func()[source]

Launch likelihood computation in a background subprocess.

Collects GUI parameters, saves them to the exchange pkl, and launches run_lh_background.py as a subprocess. The GUI remains responsive while computation runs. check_proc() polls every 500ms for completion.

show_lh()[source]

Display the most recently computed likelihood results.

Reconstructs the file path for the most recent likelihood computation based on current GUI settings and displays the plot.