-
Notifications
You must be signed in to change notification settings - Fork 76
Fix #2812: Drop HDF5 support #3138
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
base: main
Are you sure you want to change the base?
Conversation
@benjeffery please give it a look; make sure that I did not leave unnecessary tests (that do not fail) |
@benjeffery I also updated the license year in some files to 2025 (maybe it should have been a separate PR?) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3138 +/- ##
==========================================
- Coverage 89.94% 89.58% -0.37%
==========================================
Files 29 28 -1
Lines 32651 31841 -810
Branches 5854 5849 -5
==========================================
- Hits 29368 28524 -844
- Misses 1869 1887 +18
- Partials 1414 1430 +16
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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 good!
Can we make the changelog line a bit more descriptive to include a mention of "legacy formats from msprime version blah"
The metadata tests shouldn't be removed, just remove the HDF5 from the name.
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 good. We should do a search for h5py across the full repo to make sure we've cleared it out from all the requirements files etc as well.
python/tskit/util.py
Outdated
@@ -867,7 +867,7 @@ def raise_known_file_format_errors(open_file, existing_exception): | |||
"The specified file appears to be in HDF5 format. This file " | |||
"may have been generated by msprime < 0.6.0 (June 2018) which " | |||
"can no longer be read directly. Please convert to the new " | |||
"kastore format using the ``tskit upgrade`` command." | |||
"kastore format using the ``tskit upgrade`` command from tskit version 0.6.2" |
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.
Have we removed the "upgrade" CLI then also? I'm not sure what this would do now
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.
Actually, yes. Now tskit upgrade is totally removed
python/CHANGELOG.rst
Outdated
@@ -7,6 +7,9 @@ | |||
- Meatdata.schema was returning a modified schema, this is fixed to return a copy of | |||
the original schema instead (:user:`benjeffery`, :issue:`3129`, :pr:`3130`) | |||
|
|||
**Breaking Changes** | |||
- HDF5 support is dropped (:user:`hossam26644`, :issue:`2812`, :pr:`3138`) |
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.
Something a bit more descriptive might be helpful here.
@benjeffery Ok, I put back the metadataroundtrip testing. It was not converting to and from HDF5 using the tskit apis; was it actually doing any conversions? |
No, the name was a relic from when the file format was HDF5 only. |
…a and upgrade functionality
2093ebd
to
425bc02
Compare
@benjeffery ready for another review round |
Almost there, we need to remove h5py from all requirements files. |
Nice, shedding a bunch of baggage here! |
Great! Just a squash now and we should be good to go. |
No description provided.