Skip to content

Commit

Permalink
Merge pull request #383 from martindurant/shuffle_back
Browse files Browse the repository at this point in the history
Do not handle shuffle twice
  • Loading branch information
martindurant authored Oct 25, 2023
2 parents 650c211 + 2e14125 commit cdd106b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kerchunk/hdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,13 @@ def _decode_filters(self, h5obj: Union[h5py.Dataset, h5py.Group]):
raise RuntimeError(
f"{h5obj.name} uses bitshuffle compression - not supported by kerchunk"
)
elif str(filter_id) == "shuffle":
# already handled before this loop
pass
else:
raise RuntimeError(
f"{h5obj.name} uses filter id {filter_id} with properties {properties},"
f" not supported by kerchunk., supported filters are {self.decoders.keys()}"
f" not supported by kerchunk."
)
return filters

Expand Down

0 comments on commit cdd106b

Please sign in to comment.