diff --git a/kerchunk/hdf.py b/kerchunk/hdf.py index 9dd1b340..dee2c136 100644 --- a/kerchunk/hdf.py +++ b/kerchunk/hdf.py @@ -104,8 +104,8 @@ def __init__( 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[h5f.name] = h5f + 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")