Skip to content

bug in v2 codec pipeline #2501

Description

@dcherian

Zarr version

main

Description

There is a bug in these lines:

cdata is not of type bytes in the else clause:

# compress
ifself.compressor:
cdata=awaitasyncio.to_thread(self.compressor.encode, chunk)
else:
cdata=chunk
returnchunk_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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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