0.5.1
🐛 Bug Fixes
Use `np.any` instead of `np.sum` when finding all frames that contain a given object. @willgraf (#82)
np.sum
counts all the frames the object is in, but we really only care that it exists in the given frame, not the number. np.any
is about 3x faster (in my examples lineage), and should help speed up the slowest code in both is_valid_lineage
and relabel_sequential_lineage
.
Additionally, is_valid_lineage
has some improved warning messages, and saves a single loop across the cells by iteratively removing the cells with the lineage from a set of all cells.