ibl_alignment_gui.plugins.qc_dialog

Functions

callback

Gather QC inputs and update upload loader with the QC information.

display

Show the QC dialog.

setup

Set up the QC dialog and connect its accepted signal to the callback.

Classes

QCDialog

Dialog for collecting QC information from the user.

class ibl_alignment_gui.plugins.qc_dialog.QCDialog(view)[source]

Bases: QDialog

Dialog for collecting QC information from the user.

Parameters:

view (AlignmentGUIView) – The main application view.

get_qc()[source]

Retrieve the QC information from the dialog.

Returns:

A tuple containing alignment QC, ephys QC, ephys descriptions, and force resolve flag

Return type:

tuple[str, str, list[str], bool]

on_accept()[source]

Validate the input before accepting.

Return type:

None

setup()[source]

Set up the dialog layout and widgets.

Return type:

None

ibl_alignment_gui.plugins.qc_dialog.callback(controller)[source]

Gather QC inputs and update upload loader with the QC information.

Parameters:

controller (AlignmentController) – The main application controller.

ibl_alignment_gui.plugins.qc_dialog.display(controller, shank)[source]

Show the QC dialog.

Parameters:
  • controller (AlignmentGUIController) – The main application controller.

  • shank (str) – The shank identifier for which the QC dialog is displayed.

Return type:

int

Returns:

int

The result of the dialog execution (Accepted or Rejected).

ibl_alignment_gui.plugins.qc_dialog.setup(controller)[source]

Set up the QC dialog and connect its accepted signal to the callback.

Parameters:

controller (AlignmentController) – The main application controller.

Return type:

None