Skip to content

bug in v2 codec pipeline #2501

@dcherian

Description

@dcherian

Zarr version

main

Description

There is a bug in these lines:

cdata is not of type bytes in the else clause:

# 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 library

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions