Skip to content

Commit 7874a48

Browse files
committed
Removed the check, if children are existing in the next frame.
1 parent 9865e6f commit 7874a48

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

  • ctc_metrics/metrics/biological

ctc_metrics/metrics/biological/bc.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def get_ids_that_ends_with_split(
2121
counts = counts[parents > 0]
2222
parents = parents[parents > 0]
2323
ends_with_split = parents[counts > 1]
24+
print("ends_with_split:", ends_with_split)
2425
return ends_with_split
2526

2627

@@ -83,12 +84,12 @@ def is_matching(
8384
ind = np.argwhere(mr == id_ref).squeeze()
8485
if mc[ind] != id_comp:
8586
return False
86-
# Compare children
87-
mr, mc = np.asarray(mapped_ref[t2 + 1]), np.asarray(mapped_comp[t2 + 1])
88-
if not np.all(np.isin(comp_children, mc)):
89-
return False
90-
if not np.all(np.isin(mr[np.isin(mc, comp_children)], ref_children)):
91-
return False
87+
# # Compare children ### WHAT IS A CORRECT DETECTED MITOSIS? CHILDREN ARE NOT IMPORTANT NOW
88+
# mr, mc = np.concatenate(mapped_ref[t2 + 1]), np.concatenate(mapped_comp[t2 + 1])
89+
# if not np.all(np.isin(comp_children, mc)):
90+
# return False
91+
# if not np.all(np.isin(mr[np.isin(mc, comp_children)], ref_children)):
92+
# return False
9293
return True
9394

9495
def raw_division_metrics(

0 commit comments

Comments
 (0)