Skip to content

Commit

Permalink
remove hdf dataset route after all
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Feb 27, 2024
1 parent 2cfd218 commit bbd4105
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions kerchunk/hdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bbd4105

Please sign in to comment.