8000 Can't use `zarr.create` to make v2 array with no compressor · Issue #3038 · zarr-developers/zarr-python · GitHub
[go: up one dir, main page]

Skip to content
Can't use zarr.create to make v2 array with no compressor #3038
Closed
@dstansby

Description

@dstansby

In zarr-python 2:

import zarr

arr = zarr.create(store={}, shape=(1), dtype='uint8', compressor=None)
print(arr.compressor)
# None

In zarr-python 3:

import zarr

arr = zarr.create(store={}, shape=(1), dtype='uint8', zarr_format=2, compressor=None)
print(arr.compressors)
# (Zstd(level=0),)

I was expecting the list of compressors to be empty, becuase by passing compressor=None I'm specifying explicitly to have no compressors.

Metadata

Metadata

Assignees

No one assigned

    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

      0