Added partial support for compact datasets.#107
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #107 +/- ##
==========================================
+ Coverage 72.58% 72.73% +0.14%
==========================================
Files 11 11
Lines 2499 2531 +32
Branches 379 389 +10
==========================================
+ Hits 1814 1841 +27
- Misses 583 584 +1
- Partials 102 106 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
bnlawrence
left a comment
There was a problem hiding this comment.
This is great, thanks @zequihg50! Do you think you could just move your compact support into dedicated private functions? I think that would be cleaner.
pyfive/h5d.py
Outdated
| match self.layout_class: # noqa | ||
| case 0: #compact storage | ||
| raise NotImplementedError("Compact Storage") | ||
| self.data = None |
There was a problem hiding this comment.
I think it would be more consistent with the rest of the code if we pushed the compact handling into a method called from here.
pyfive/h5d.py
Outdated
| match self.layout_class: # noqa | ||
| case 0: #compact storage | ||
| raise NotImplementedError("Compact Storage") | ||
| if self.data is None: |
There was a problem hiding this comment.
Similarly, this functionality would be better in a method.
|
@zequihg50 Thanks for these additions, could come in handy in Would it make sense to adapt the testing scheme to current state of #108? That way we do not need to ingest new data files into git. |
|
Hi @kmuehlbauer, I have refactored the test to meet the new testing scheme. Please feel free to make any changes if that doesn't fully comply. |
|
@zequihg50 + 💯 for containing within one test file. |
|
many thanks @zequihg50 and cheers to @bnlawrence and @kmuehlbauer for reviewing! @bnlawrence do you mind approving your stale review, please? 🍻 |
Description
Added partial support for compact datasets (currently NotImplementedError is raised). This supports the data layout messages v3 and v4, v1 and v2 still pending but I can work out this in the near future. GitHub does not allow to attach a real file but I have included tests for a custom compact variable file.
Checklist