Skip to content

Commit

Permalink
fix: break for loop gui.checkMothEligibility if bud disappears in fut…
Browse files Browse the repository at this point in the history
…ure visited frames, see #368
  • Loading branch information
ElpadoCan committed Jul 3, 2023
1 parent cd8035c commit 1240374
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cellacdc/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -8623,6 +8623,10 @@ def checkMothEligibility(self, budID, new_mothID):
if cca_df_i is None:
# ith frame was not visited yet
break

if budID not in cca_df_i.index:
# Bud disappeared
break

is_still_bud = cca_df_i.at[budID, 'relationship'] == 'bud'
if not is_still_bud:
Expand Down

0 comments on commit 1240374

Please sign in to comment.