We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
typesize
Blosc
1 parent 3b6565b commit 0c45340Copy full SHA for 0c45340
src/zarr/codecs/blosc.py
@@ -8,6 +8,7 @@
8
9
import numcodecs
10
from numcodecs.blosc import Blosc
11
+from packaging.version import Version
12
13
from zarr.abc.codec import BytesBytesCodec
14
from zarr.core.buffer.cpu import as_numpy_array_wrapper
@@ -163,6 +164,9 @@ def _blosc_codec(self) -> Blosc:
163
164
"shuffle": map_shuffle_str_to_int[self.shuffle],
165
"blocksize": self.blocksize,
166
}
167
+ # See https://github.com/zarr-developers/numcodecs/pull/713
168
+ if Version(numcodecs.__version__) >= Version("0.16.0"):
169
+ config_dict["typesize"] = self.typesize
170
return Blosc.from_config(config_dict)
171
172
async def _decode_single(
0 commit comments