Skip to content

Commit

Permalink
Start tracklet ids at 1 instead of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
cmalinmayor committed Jul 31, 2024
1 parent 0ebff28 commit 2d69e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/motile_toolbox/visualization/napari_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def assign_tracklet_ids(graph: nx.DiGraph) -> nx.DiGraph:
graph_copy.remove_edge(parent, daughter)
intertrack_edges.append((parent, daughter))

track_id = 0
track_id = 1
for tracklet in nx.weakly_connected_components(graph_copy):
nx.set_node_attributes(
graph, {node: {"tracklet_id": track_id} for node in tracklet}
Expand Down

0 comments on commit 2d69e99

Please sign in to comment.