Skip to content

Commit 0e45b96

Browse files
committed
Do not go throught the partial decode for old versions of numcodecs
1 parent 51d38ab commit 0e45b96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zarr/core.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646

4747
# noinspection PyUnresolvedReferences
48-
class Array(object):
48+
class Array:
4949
"""Instantiate an array from an initialized store.
5050
5151
Parameters
@@ -1763,6 +1763,7 @@ def _chunk_getitems(self, lchunk_coords, lchunk_selection, out, lout_selection,
17631763
self._partial_decompress
17641764
and self._compressor
17651765
and self._compressor.codec_id == "blosc"
1766+
and hasattr(self._compressor, "decode_partial")
17661767
and not fields
17671768
and self.dtype != object
17681769
and hasattr(self.chunk_store, "getitems")

0 commit comments

Comments
 (0)