pypeit.dashboard.app module
Application bootstrap for the PypeIt Dashboard.
This mirrors the setup_gui startup path (controller.start_gui +
SetupGUIController.start): it creates the QApplication, applies
the shared window-icon/font conventions, builds the main window from the
reduction metadata, and runs the Qt event loop. The dashboard’s loud-failure
exception hook is installed by the pypeit_dashboard script’s
init_log (see pypeit.scripts.dashboard.PypeItDashboard.init_log()),
before this module is imported.
- pypeit.dashboard.app._make_application()[source]
Create the
QApplicationwith the dashboard’s icon and font conventions (reusing thesetup_guiapproach).- Returns:
The application instance.
- Return type:
QApplication
- pypeit.dashboard.app.launch(args)[source]
Launch the PypeIt Dashboard and run the Qt event loop.
- Parameters:
args (
argparse.Namespace) – Parsed command-line arguments. Must providepypeit_file(the required positional.pypeitargument) and may provideredux_path.- Returns:
The Qt application exit code.
- Return type: