pypeit.dashboard.view.header module
The shared header banner for the PypeIt Dashboard (design requirement R6).
The banner shows the reduction’s context — the .pypeit file name, the
spectrograph (PYP_SPEC), the setup/configuration ID, the pipeline
(MultiSlit / Echelle / IFU), and the reduction directory — with the PypeIt
logo in the top-right corner. It is shared by both the Status and
Calibrations views.
Generated by JXP and Claude.
- class pypeit.dashboard.view.header.ElidingLabel(mode=TextElideMode.ElideMiddle, parent=None)[source]
Bases:
QLabelA
QLabelthat elides its (long) text to fit the available width, and reports a small minimum width so it never blocks the window from being resized narrower.Generated by JXP and Claude.
- Parameters:
mode (
Qt.TextElideMode, optional) – How to elide; defaults to eliding the middle (keeps the start and end of a path visible).parent (
QWidget, optional) – The parent widget.
- _update_elided()[source]
Set the displayed text to the full text elided to the current width.
Generated by JXP and Claude.
- Returns:
None.
- fullText()[source]
Return the full, un-elided text.
Generated by JXP and Claude.
- Returns:
The stored full text.
- Return type:
- class pypeit.dashboard.view.header.HeaderBanner(header_info, parent=None)[source]
Bases:
QFrameThe shared context banner + PypeIt logo (R6).
Generated by JXP and Claude.
- Parameters:
header_info (
pypeit.dashboard.model.HeaderInfo) – The reduction metadata to display.parent (
QWidget, optional) – The parent widget.
- _set_logo()[source]
Load and scale the PypeIt logo into the corner label, if present.
Generated by JXP and Claude.
- Returns:
None.
- set_header_info(header_info)[source]
Update the displayed field values from a
HeaderInfo.Generated by JXP and Claude.
- Parameters:
header_info (
pypeit.dashboard.model.HeaderInfo) – The reduction metadata to display.- Returns:
None.