pypeit.dashboard.view.qa_dialog module

A simple full-view dialog for a QA PNG (design C9).

Per the Stage 3 decisions it is a basic image window: the PNG is scaled to fit a window that is smaller than the screen (Round-2 #5), so it opens showing the whole figure rather than a zoomed-in crop.

Generated by JXP and Claude.

class pypeit.dashboard.view.qa_dialog.QaImageDialog(png_path, parent=None)[source]

Bases: QDialog

A modeless dialog showing a single QA PNG, scaled to fit a window that is smaller than the screen.

Generated by JXP and Claude.

Parameters:
  • png_path (str, pathlib.Path) – Path to the QA PNG.

  • parent (QWidget, optional) – The parent widget.

static _max_size()[source]

Return the maximum image size (~80% of the available screen).

Generated by JXP and Claude.

Returns:

(max_width, max_height) in pixels.

Return type:

tuple