Closed hhslepicka closed 5 years ago
Found out that I was sending in the wrong stuff.
I should use the instance of the dtype
and not the dtype
itself.
Which means:
np.uint32
np.dtype(np.uint32)
dec_data = bitshuffle.decompress_lz4(data, (nelems,), np.dtype(dtype))
I'm trying to decompress a numpy array and if I send in the dtype from the array itself I get a
TypeError: an integer is required
. If I senddtype
as an integer representing the size in bytes needed by my original data type, it failsTypeError: data type not understood
.So far I was able to fix it by creating a wrapper around the dtype like so: