We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25585b9 commit 29d12e6Copy full SHA for 29d12e6
1 file changed
src/zarr/codecs/blosc.py
@@ -318,6 +318,8 @@ def _encode_sync(
318
chunk_bytes: Buffer,
319
chunk_spec: ArraySpec,
320
) -> Buffer | None:
321
+ # Since blosc only support host memory, we convert the input and output of the encoding
322
+ # between numpy array and buffer
323
return chunk_spec.prototype.buffer.from_bytes(
324
self._blosc_codec.encode(chunk_bytes.as_numpy_array())
325
)
0 commit comments