QADMainWindow

class sofia_redux.pipeline.gui.qad.qad_main_panel.QADMainWindow[source]

Bases: QMainWindow, Ui_MainWindow

QAD Qt5 GUI main window.

All attributes and methods for this class are intended for internal use, to support the main GUI event loop and operations. This class is normally instantiated from the sofia_redux.pipeline.gui.qad.main function; all methods are triggered by user interaction only.

The UI for this application is built in Qt Designer: see the designer folder for the Designer input files; the compiled Python scripts are in the ui module. All ui_*.py files should not be edited manually, as they are automatically generated. See the designer/compile_ui file for the sequence of commands required to rebuild the UI from Designer files.

Build the QAD GUI window.

Methods Summary

cleanup(*args)

Close the application.

closeEvent(event)

Clean up processes, then close the application.

imexamFinish(status)

ImExam callback.

keyPressEvent(event)

Handle keyboard shortcuts.

onDisplayHeader()

Start up header display window and set text.

onDisplaySettings()

Set general display parameters from user dialog.

onFilter()

Filter displayed files.

onHome()

Set the home directory as the root.

onImExam()

Start imexam in a new thread.

onNext()

Set the last recorded directory as the root.

onOpen()

Select a new directory as the root.

onPhotometrySettings()

Set parameters for photometry from a user dialog.

onPlotSettings()

Set parameters for plots from a user dialog.

onPrevious()

Set the enclosing directory as the root.

onRow()

Determine the selected files and schedule them for display.

onSaveSettings()

Save current parameters to disk.

openFiles(filelist)

Display selected files.

resetModel()

Reset the TreeView model.

setFilter()

Set the file filter in the TreeView model.

setRoot()

Set the TreeView model root path.

setStatus(msg)

Set a status message.

startupImViewer()

Start the DS9 image viewer.

Methods Documentation

cleanup(*args)[source]

Close the application.

closeEvent(event)[source]

Clean up processes, then close the application.

Parameters:
eventQEvent

Close event.

imexamFinish(status)[source]

ImExam callback.

Parameters:
statusNone or tuple

If not None, contains an error message to log.

keyPressEvent(event)[source]

Handle keyboard shortcuts.

Parameters:
eventQEvent

Keypress event.

onDisplayHeader()[source]

Start up header display window and set text.

This method uses the display settings to determine which extension(s) to retrieve headers for. If a particular extension is selected, only that header will be displayed. If all extensions are selected (either for cube or multi-frame display), all extension headers will be displayed.

onDisplaySettings()[source]

Set general display parameters from user dialog.

onFilter()[source]

Filter displayed files.

Multiple filters may be specified in a comma-separated list. The wildcard ‘*’ may be used in any filter. An empty filter box will display all files.

onHome()[source]

Set the home directory as the root.

onImExam()[source]

Start imexam in a new thread.

onNext()[source]

Set the last recorded directory as the root.

onOpen()[source]

Select a new directory as the root.

onPhotometrySettings()[source]

Set parameters for photometry from a user dialog.

onPlotSettings()[source]

Set parameters for plots from a user dialog.

onPrevious()[source]

Set the enclosing directory as the root.

onRow()[source]

Determine the selected files and schedule them for display.

onSaveSettings()[source]

Save current parameters to disk.

Parameters are saved to files in the hidden .qad folder in the user’s home directory. On startup, these files are read and used as the default QAD settings.

openFiles(filelist)[source]

Display selected files.

This method dispatches FITS files, DS9 region files, and data arrays to the QAD image viewer. Any other files are opened with the system default application for their file type.

Parameters:
filelistlist of str

Full paths to files for display.

resetModel()[source]

Reset the TreeView model.

setFilter()[source]

Set the file filter in the TreeView model.

setRoot()[source]

Set the TreeView model root path.

setStatus(msg)[source]

Set a status message.

Parameters:
msgstr

Message to display.

startupImViewer()[source]

Start the DS9 image viewer.