Skip to content

Commit

Permalink
Fix rounding error in lca-classify (fixes #93)
Browse files Browse the repository at this point in the history
  • Loading branch information
epruesse committed Aug 19, 2020
1 parent 4ce6155 commit 461b58c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions doc/source/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Changelog
=========

Version 1.7.1:
--------------
- Fix rounding error in lca classifier (:issue:`93`)

Version 1.7.0:
--------------
- allow multiple output types at once
Expand Down
2 changes: 1 addition & 1 deletion src/search_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ search_filter::operator()(tray t) {
for (vector<string>& vs: group_names) {
reverse(vs.begin(), vs.end());
}
int outliers = vc.size() * (1 - opts->lca_quorum);
int outliers = vc.size() * (1 - opts->lca_quorum) +.5;
while (outliers >= 0 && !group_names.empty()) {
auto it = group_names.begin();
if (it->empty()) {
Expand Down

0 comments on commit 461b58c

Please sign in to comment.