napari_track_edit.motile.menus.run_viewer

Classes

RunViewer

A widget for viewing in progress or completed runs, including

Module Contents

class napari_track_edit.motile.menus.run_viewer.RunViewer

Bases: qtpy.QtWidgets.QGroupBox

A widget for viewing in progress or completed runs, including the progress of the solver and the parameters. Output tracks and segmentation are visualized separately in napari layers.

edit_run
run: napari_track_edit.motile.backend.MotileRun | None = None
params_widget
solver_label: qtpy.QtWidgets.QLabel
gap_plot: pyqtgraph.PlotWidget
update_run(run: napari_track_edit.motile.backend.MotileRun)

Update the run being viewed. Changes the title, solver status and gap plot, and parameters being displayed.

Parameters:

run (MotileRun) – The new run to display

_back_to_edit_widget() → qtpy.QtWidgets.QWidget

Create a widget for navigating back to the run editor with different parameters.

Returns:

A widget with two buttons: one for navigating back to the

previous run editor state, and one for populating the run editor with the currently viewed run’s parameters.

Return type:

QWidget

_emit_run()

Emit the edit_run signal with the current run. Used to populate the run editor with the current run’s parameters.

_progress_widget() → qtpy.QtWidgets.QWidget

Create a widget containing solver progress and status.

Returns:

A widget with a label indicating solver status and

a collapsible graph of the solver gap.

Return type:

QWidget

_plot_widget() → pyqtgraph.PlotWidget
Returns:

a widget containg an (empty) plot of the solver gap

Return type:

pg.PlotWidget

_set_solver_label(status: str)
solver_event_update()
reset_progress()