spacr.qt.widgets.channel_sort_dialog

Make Masks’ example-set check.

Thin Qt over spacr.channel_sorting, which holds every decision:

  • ExampleSetsDialog shows three detected sets side by side, every channel with its mask, and asks whether they are right.

Classes

ExampleSetsDialog

Three sets side by side -- every channel and its mask -- and a question.

Module Contents

class spacr.qt.widgets.channel_sort_dialog.ExampleSetsDialog(folder: str, sets: Dict[spacr.channel_sorting.SetKey, Dict[int, str]], masks_dir: str | None = None, parent=None)[source]

Bases: PySide6.QtWidgets.QDialog

Three sets side by side – every channel and its mask – and a question.

Lay out up to three sets: the first, the middle and the last.

Parameters:
  • folder – the image folder.

  • sets – {set key: {channel: name}}.

  • masks_dir – an explicit masks folder.

  • parent – the Qt parent.