-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
np.any
instead of np.sum
when finding all frames that contain…
… a given object. (#82) * Remove cells in lineage from all_cells, left over are issues. This removes a loop across all cells to hopefully speed this from O(3N) to O(2N). * Update warning message if daughter frame0 > parent frameNj +1 * Use np.any instead of np.sum for finding frames. np.any is ~3x faster than np.sum, since we only care that it exists.
- Loading branch information
Showing
1 changed file
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters