Skip to content

Commit

Permalink
local cell density
Browse files Browse the repository at this point in the history
  • Loading branch information
kapoorlab committed Apr 27, 2024
1 parent b4a9668 commit 3b6a736
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/napatrackmater/Trackmate.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def _create_generations(self, all_source_ids: list):
root_leaf = []
root_root = []
root_splits = []
root_leaf_source = []


# Get the root id
for source_id in all_source_ids:
Expand All @@ -496,9 +496,10 @@ def _create_generations(self, all_source_ids: list):
root_leaf.append(target_target_id[0])


#if len(list(self.oneat_dividing_tracks.keys())) > 1:
# for cell_id in list(self.oneat_dividing_tracks.keys()):
# root_splits.append(cell_id)
if len(list(self.oneat_dividing_tracks.keys())) > 1:
for cell_id in list(self.oneat_dividing_tracks.keys()):
if cell_id in all_source_ids:
root_splits.append(cell_id)


return root_root, root_splits, root_leaf
Expand Down

0 comments on commit 3b6a736

Please sign in to comment.