Skip to content

Commit 11e97fd

Browse files
committed
FIX: temporary fix to tackle issue pydata#3680
1 parent 7e6f3e5 commit 11e97fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/backends/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def find_root_and_group(ds):
3434
"""Find the root and group name of a netCDF4/h5netcdf dataset."""
3535
hierarchy = ()
3636
while ds.parent is not None:
37-
hierarchy = (ds.name,) + hierarchy
37+
hierarchy = (ds.name.split('/')[-1],) + hierarchy
3838
ds = ds.parent
3939
group = "/" + "/".join(hierarchy)
4040
return ds, group

0 commit comments

Comments
 (0)