Skip to content

Properly handle empty assemblies - #1641

Merged
MMathisLab merged 1 commit into
masterfrom
fix_1638
Jan 18, 2022
Merged

Properly handle empty assemblies#1641
MMathisLab merged 1 commit into
masterfrom
fix_1638

Conversation

@jeylau

@jeylau jeylau commented Jan 18, 2022

Copy link
Copy Markdown
Contributor

L708 was letting empty assemblies slip into the rest of the code, causing errors when trying to evaluate the Mahalanobis distance (since len(inds) then evaluates to 0). Empty assemblies are now properly removed.

Fixes #1638

@jeylau jeylau added the bug fix! fix for a real buggy one... label Jan 18, 2022
@jeylau
jeylau requested a review from MMathisLab January 18, 2022 08:17
@MMathisLab
MMathisLab merged commit 9e023e3 into master Jan 18, 2022
@MMathisLab

Copy link
Copy Markdown
Member

good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix! fix for a real buggy one...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ZeroDivisionError: division by zero at covert to tracklets

2 participants