remove_from_tracks_layer#

movement.napari.layer_wiring.remove_from_tracks_layer(points_layer, removed_indices)[source]#

Remove the rows corresponding to deleted points.

Users edit the Points layer directly, either dragging points or removing inaccurate predictions. The Tracks layer has no interactive editing of its own, so it must be kept in sync with the Points layer instead.

removed_indices are indices in the Points layer which line up with rows in the Tracks layer, the same way sync_tracks_layer() relies on for edits.