From c04ba1012fa6244f21ca59636a02bd5f043654f7 Mon Sep 17 00:00:00 2001 From: kapoorlab Date: Sat, 27 Apr 2024 18:34:09 +0000 Subject: [PATCH] avoid double counting --- src/napatrackmater/Trackmate.py | 2 +- src/napatrackmater/_version.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/napatrackmater/Trackmate.py b/src/napatrackmater/Trackmate.py index 5c68ca36..f1d98660 100644 --- a/src/napatrackmater/Trackmate.py +++ b/src/napatrackmater/Trackmate.py @@ -493,7 +493,7 @@ def _create_generations(self, all_source_ids: list): 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: + if cell_id in all_source_ids and cell_id not in root_splits: root_splits.append(cell_id) return root_root, root_splits, root_leaf diff --git a/src/napatrackmater/_version.py b/src/napatrackmater/_version.py index 026514af..1f49cdde 100644 --- a/src/napatrackmater/_version.py +++ b/src/napatrackmater/_version.py @@ -1,2 +1,2 @@ -__version__ = version = "5.1.2" -__version_tuple__ = version_tuple = (5, 1, 2) +__version__ = version = "5.1.3" +__version_tuple__ = version_tuple = (5, 1, 3)