-
Notifications
You must be signed in to change notification settings - Fork 101
Handle zarr 3.1.0 #766
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?
Handle zarr 3.1.0 #766
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #766 +/- ##
===========================================
+ Coverage 99.96% 100.00% +0.03%
===========================================
Files 64 64
Lines 2789 2804 +15
===========================================
+ Hits 2788 2804 +16
+ Misses 1 0 -1
🚀 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.
LGTM - the new API should definitely be made private, and it would be good to see at least one CI run against Zarr 3.0.x to make sure we're retaining support there.
@@ -56,6 +58,23 @@ | |||
CODEC_PREFIX = "numcodecs." | |||
|
|||
|
|||
def from_zarr_dtype(dtype: Any) -> np.dtype: |
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.
def from_zarr_dtype(dtype: Any) -> np.dtype: | |
def _from_zarr_dtype(dtype: Any) -> np.dtype: |
return dtype # pragma: no cover | ||
|
||
|
||
def to_zarr_dtype(dtype: np.dtype) -> Any: |
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.
def to_zarr_dtype(dtype: np.dtype) -> Any: | |
def _to_zarr_dtype(dtype: np.dtype) -> Any: |
what's the easiest way to set up a test matrix that includes multiple zarr versions that can be run locally easily? Maybe we need to bite the bullet and bring in #704 |
Implements a data type adapter layer for
numcodecs.zarr3
. Ensures that zarr data structures get the right data type.this hopefully fixes the breakage caused by the zarr 3.1 release.
TODO: