Skip to content

Commit

Permalink
Test cell in movie must be in lineage.
Browse files Browse the repository at this point in the history
  • Loading branch information
willgraf committed Sep 7, 2021
1 parent 62f9d35 commit b11d907
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions deepcell_tracking/utils_test.py
Expand Up @@ -368,11 +368,8 @@ def test_is_valid_lineage(self):
assert not utils.is_valid_lineage(movie, bad_lineage)

# cell in movie but not in lineage is invalid
new_frame = get_annotated_image(num_labels=1, sequential=False)
bad_movie = np.concatenate([
movie,
np.expand_dims(new_frame, axis=0)
], axis=0)
bad_movie = copy.deepcopy(movie)
bad_movie[0, 0, 0] = bad_label
assert not utils.is_valid_lineage(bad_movie, lineage)

# a daughter's frames should start immediatlely
Expand Down

0 comments on commit b11d907

Please sign in to comment.