Skip to content

Commit cdd106b

Browse files
authored
Merge pull request #383 from martindurant/shuffle_back
Do not handle shuffle twice
2 parents 650c211 + 2e14125 commit cdd106b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kerchunk/hdf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,13 @@ def _decode_filters(self, h5obj: Union[h5py.Dataset, h5py.Group]):
240240
raise RuntimeError(
241241
f"{h5obj.name} uses bitshuffle compression - not supported by kerchunk"
242242
)
243+
elif str(filter_id) == "shuffle":
244+
# already handled before this loop
245+
pass
243246
else:
244247
raise RuntimeError(
245248
f"{h5obj.name} uses filter id {filter_id} with properties {properties},"
246-
f" not supported by kerchunk., supported filters are {self.decoders.keys()}"
249+
f" not supported by kerchunk."
247250
)
248251
return filters
249252

0 commit comments

Comments
 (0)