ibl_alignment_gui.plugins.qc_dialog

Functions

_get_critical_descriptions

Return the QC reason descriptions, or an empty list if ibllib is missing.

apply_to_shanks

Update the upload loaders of the given shanks with the QC information from the dialog.

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.

property apply_to_all: bool

Whether the assessment should be applied to all the shanks being uploaded.

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.apply_to_shanks(controller, shanks)[source]

Update the upload loaders of the given shanks with the QC information from the dialog.

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

  • shanks (list of str) – The shanks to apply the QC information to.

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, allow_apply_all=False)[source]

Show the QC dialog.

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

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

  • allow_apply_all (bool, default=False) – Whether to offer the option to apply the QC information to all the other shanks.

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