From 2e14125a1761164b0d3ac021bb5410a23f11b188 Mon Sep 17 00:00:00 2001 From: Martin Durant Date: Tue, 24 Oct 2023 13:44:25 -0400 Subject: [PATCH] Do not handle shuffle twice --- kerchunk/hdf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kerchunk/hdf.py b/kerchunk/hdf.py index 787b3fae..08b4f790 100644 --- a/kerchunk/hdf.py +++ b/kerchunk/hdf.py @@ -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