From bbd4105ff9c498c2a7c6eec5cbd7fe1abdecaf17 Mon Sep 17 00:00:00 2001 From: Martin Durant Date: Tue, 27 Feb 2024 09:53:40 -0500 Subject: [PATCH] remove hdf dataset route after all --- kerchunk/hdf.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kerchunk/hdf.py b/kerchunk/hdf.py index dee2c136..e862bb3f 100644 --- a/kerchunk/hdf.py +++ b/kerchunk/hdf.py @@ -103,12 +103,6 @@ def __init__( self._h5f = h5f fs, path = fsspec.core.url_to_fs(url, **(storage_options or {})) self.input_file = fs.open(path, "rb") - elif isinstance(h5f, h5py.Dataset): - group = h5f.file.create_group(f"{h5f.name}_") - group[f"{h5f.name}__"] = h5f - self._h5f = group - fs, path = fsspec.core.url_to_fs(url, **(storage_options or {})) - self.input_file = fs.open(path, "rb") else: raise ValueError("type of input `h5f` not recognised") self.spec = spec