Skip to content

Unexpected keyword argument 'numThreads' when reading Java Zarr with Python #14

@ZigzagAwaka

Description

@ZigzagAwaka

Hi,

When creating Blosc compressor with

Compressor compressor = CompressorFactory.create("blosc", "cname", "zstd", "clevel", 9, "blocksize", 0, "shuffle", 1);

A new optional parameter for Blosc "nthreads" is added into the .zarray metadata file as

"numThreads" : 1

And this is what I got when reading this Zarr with the Python API

  File "numcodecs\blosc.pyx", line 548, in numcodecs.blosc.Blosc.__init__
TypeError: __init__() got an unexpected keyword argument 'numThreads'

Since 'numThreads' is in metadata files it's not possible anymore to read the resulting Zarr using Python
It's technically a Python error, but since JZarr data has to be compatible with the Python API I think it's more of a Java issue (or did I just do something wrong ?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions