We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e6f3e5 commit 11e97fdCopy full SHA for 11e97fd
xarray/backends/common.py
@@ -34,7 +34,7 @@ def find_root_and_group(ds):
34
"""Find the root and group name of a netCDF4/h5netcdf dataset."""
35
hierarchy = ()
36
while ds.parent is not None:
37
- hierarchy = (ds.name,) + hierarchy
+ hierarchy = (ds.name.split('/')[-1],) + hierarchy
38
ds = ds.parent
39
group = "/" + "/".join(hierarchy)
40
return ds, group
0 commit comments