Skip to content

Commit

Permalink
hack names
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Feb 23, 2024
1 parent b388d95 commit 2cfd218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kerchunk/hdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2cfd218

Please sign in to comment.