-
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] Add "&" and " | " option to Minhash intersection and Minhash merge #1533
Conversation
Codecov Report
@@ Coverage Diff @@
## latest #1533 +/- ##
==========================================
+ Coverage 90.26% 95.26% +4.99%
==========================================
Files 126 99 -27
Lines 21271 17607 -3664
Branches 1595 1595
==========================================
- Hits 19201 16773 -2428
+ Misses 1843 607 -1236
Partials 227 227
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
…_and_and_or_3 gotta add these ("&", "|") operators
hi @hehouts I left a comment on a line of code. Also, could you please make new tests to test |
tests/test_minhash.py
Outdated
@@ -1872,6 +1878,21 @@ def test_merge_scaled(): | |||
for k in mh2.hashes: | |||
assert k in mh3.hashes | |||
|
|||
def add_is_symmetric(): |
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.
if you look at the files view, here, https://github.com/dib-lab/sourmash/pull/1533/files, you'll see that it says Added lines #L1882 - L1883 were not covered by tests
. This is because this code is not executed by the testing framework, because the function name doesn't start with test_
:).
This is looking great, @hehouts! One comment about a test, but that's it. Let us know when you're done and ready for a review. If you're feeling ambitious, you could replace the
but that's a stretch goal :) |
Cool! I did the last 3 but I didnt change any in |
this looks great, @hehouts ! |
ok, think this is done now! |
ok - I will review, but not merge. If you want it merged change the name to [MRG] instead of [WIP] :) |
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.
see comments - the code all looks good, just need to add to the tests!
@ctb please re-review :) |
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.
One more test to fix up!
Note you can go to the files tab and review, answer, and resolve my previous comments. That's a good way to make sure you caught everything from a previous review!
…into add_and_and_or_3
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.
Looks great! A few cleanup suggestions based on spaces; commit those and then merge 🎉!!
Co-authored-by: C. Titus Brown <titus@idyll.org>
Co-authored-by: C. Titus Brown <titus@idyll.org>
Co-authored-by: C. Titus Brown <titus@idyll.org>
🎉 nice work! yay! |
adds
&
operator option to minhash intersection, and|
option to minhash merge (#1474 )Fixes Issue #1479
(replicate of pr #1523 that was removed due to github-branch mistakes)