Experiment Browser

The main application browser: file tree, queue/preparation station/looper and MDI experiment windows.

Overview

quatm/GUI/browser/ provides the experiment browser (Browser): the main application window of Quatm, built on QMainWindow + QMdiArea. The FileSelector on the left browses the experiment scripts, the experiment queue, preparation station and looper are docked at the top, and each experiment has its own ExperimentWindow sub-window in the central MDI area.

Core components

ComponentModuleDescription
Browserbrowser/main_window.pyMain window: MDI + dock widgets + lifecycle
FileSelectorbrowser/file_selector.pyExperiment file tree (double-click to open/simulate)
ExperimentWindowbrowser/experiment_window.pySingle-experiment control panel (parameters/submit/scan)
ExperimentQueue / PrepStationexperiment/Queue and preparation station (docked at the top)
Looperlooper/Conditional looper (docked at the top)

Lifecycle

  • open_experiment: opens an experiment window; if it is already open, it is restored and brought to the front.
  • closeEvent: saves the main-window geometry and the sub-window state, then stops the worker threads.
  • moveEvent / resizeEvent: debounced saving of the geometry for restoration on the next start.

Usage

from quatm.GUI.browser.main_window import Browser

browser = Browser()
browser.show()

For a fuller description see Experiment browser.