-
-
Notifications
You must be signed in to change notification settings - Fork 361
Closed
Labels
bugPotential issues with the zarr-python libraryPotential issues with the zarr-python library
Description
Zarr version
main
Description
There is a bug in these lines:
cdata
is not of type bytes in the else
clause:
zarr-python/src/zarr/codecs/_v2.py
Lines 80 to 86 in eb85ee7
# compress | |
if self.compressor: | |
cdata = await asyncio.to_thread(self.compressor.encode, chunk) | |
else: | |
cdata = chunk | |
return chunk_spec.prototype.buffer.from_bytes(cdata) |
cc @normanrz
Steps to reproduce
This is triggering failures in xarray's test suite. I haven't succeeded at making a minimal reproducer.
Additional output
No response
Metadata
Metadata
Assignees
Labels
bugPotential issues with the zarr-python libraryPotential issues with the zarr-python library