-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle missing weight attributes in KDE frequency estimation
Throw an exception if the user has requested weighted KDE frequencies with weights that do not match any of the tips in the given tree. This commit explicitly checks for an empty dictionary of weights after filtering for representation by tips and raise an exception with a meaningful error message (instead of allowing the code to continue running and throwing a less meaningful ValueError when no valid weights remain). This commit also adds a unit test for this behavior. Closes #425.
- Loading branch information
Showing
3 changed files
with
34 additions
and
3 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
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
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