Skip to content

Passing negative clevel to bitshuffle with zstd does not work #375

@t20100

Description

@t20100

Documentation says it is possible but when used it raises:

  File "test.py", line 83, in test
    dataset = h5file.create_dataset(
              ^^^^^^^^^^^^^^^^^^^^^^
  File "h5py/_hl/group.py", line 186, in create_dataset
    dsid = dataset.make_new_dset(group, shape, dtype, data, name, **kwds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "h5py/_hl/dataset.py", line 106, in make_new_dset
    dcpl = filters.fill_dcpl(
           ^^^^^^^^^^^^^^^^^^
  File "_hl/filters.py", line 299, in fill_dcpl
    plist.set_filter(compression, h5z.FLAG_OPTIONAL, compression_opts)
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py/h5p.pyx", line 667, in h5py.h5p.PropDCID.set_filter
OverflowError: can't convert negative value to unsigned int

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions