-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MRG] fix scaled=1 gather bug #1670
Conversation
Codecov Report
@@ Coverage Diff @@
## latest #1670 +/- ##
==========================================
+ Coverage 82.35% 89.76% +7.40%
==========================================
Files 113 86 -27
Lines 11772 8058 -3714
Branches 1490 1490
==========================================
- Hits 9695 7233 -2462
+ Misses 1818 566 -1252
Partials 259 259
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Ready for review & merge @sourmash-bio/devs |
the test LGTM, but I don't understand the difference between
and
|
The issue is this line sourmash/src/sourmash/search.py Line 320 in d101fb3
if statement that updates the object properties if and only if scaled has increased. I used this to initialize the object properties the first time through by setting the initial cmp_scaled to a value of 1, which means (before this change) it would only initialize the object properties for a scaled > 1.
It's not great code, to be fair. But rather than making bigger changes I decided to just patch it and test it :) |
Ah this makes sense, thank you for the explanation! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
thanks! |
Creates a test for & and fixes a bug noted in #1421 (comment) - the default "unset" value used in the #1613 code was set to a valid scaled value, and we never tested it! Oops!