-
Notifications
You must be signed in to change notification settings - Fork 78
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MRG] Fix max hash deprecation warnings #1301
Conversation
Codecov Report
@@ Coverage Diff @@
## latest #1301 +/- ##
==========================================
+ Coverage 88.70% 93.97% +5.26%
==========================================
Files 125 98 -27
Lines 18293 14678 -3615
Branches 1438 1437 -1
==========================================
- Hits 16226 13793 -2433
+ Misses 1821 640 -1181
+ Partials 246 245 -1
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 @luizirber |
Next PR down the line from this one is removing |
Do you mean, that SHOULD be the next PR down the line? I'm not sure I want to do that for 4.0; involves a few more changes, and might break pickled MinHash objects. |
I sure hope no one is depending on storing pickled MinHash objects 馃槵 |
On Thu, Feb 04, 2021 at 04:23:52PM -0800, Luiz Irber wrote:
> Do you mean, that SHOULD be the next PR down the line? I'm not sure I want to do that for 4.0; involves a few more changes, and might break pickled MinHash objects.
I sure hope no one is depending on storing pickled MinHash objects :grimacing:
I think I might be, in spacegraphcats 馃榿
|
May be worth a look (faster and safer pickle): https://jcristharif.com/quickle/ |
In #1128, we deprecated direct use of
max_hash
attribute as of 3.5, slated for removal in 5.0. This PR cleans up the sourmash codebase so that the associated deprecation warnings do not come from internal code, at least 馃槃Specifically, this PR -
MinHash.max_hash
from most code in sourmash, including tests._max_hash
proprety on classMinHash
.Minhash._max_hash
in the few remaining places in the code base.I also updated the screed version requirement in
setup.cfg
to v1.0.5, which removes another DeprecationWarning from old py2.7/3.6 code.Fixes #1296, clean up deprecation warnings
Fixes #1297, update screed version
Checklist
make test
Did it pass the tests?make coverage
Is the new code covered?without a major version increment. Changing file formats also requires a
major version number increment.
changes were made?