test_track_labels ================= .. py:module:: test_track_labels Classes ------- .. autoapisummary:: test_track_labels.MockEvent Functions --------- .. autoapisummary:: test_track_labels.create_event_val test_track_labels.test_paint_event test_track_labels.test_ensure_valid_label Module Contents --------------- .. py:class:: MockEvent(value) .. py:attribute:: value .. py:function:: create_event_val(tp: int, z: tuple[int], y: tuple[int], x: tuple[int], old_val: int, target_val: int) -> list[tuple[tuple[numpy.ndarray, numpy.ndarray, numpy.ndarray, numpy.ndarray], numpy.ndarray, int]] Create event values to simulate a paint event .. py:function:: test_paint_event(make_napari_viewer, graph_3d, segmentation_3d) Test paint event processing 1) Paint with a new label (4), new track id (4) 2) Replace node 3 with new label 6, breaking edge (2,3), establishing edge (5,6) 3) Erase part of node 6 4) Undo erase event TP 0 1 1 1 1 1 | | | | | 1 2 -1-> 2 -2-> 2 -3-> 2 -4-> 2 / \ / \ \ \ 2 3 4 3 4 6 4 <6 4 6 4 | | | 3 5 5 5 5 .. py:function:: test_ensure_valid_label(make_napari_viewer, graph_3d, segmentation_3d)