issues: 547925778
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
547925778 | MDU6SXNzdWU1NDc5MjU3Nzg= | 3680 | broken output of `find_root_and_group` for h5netcdf | 5821660 | closed | 0 | 4 | 2020-01-10T08:02:06Z | 2022-01-12T08:23:37Z | 2020-01-23T06:36:25Z | MEMBER | MCVE Code Sample```python Your code hereimport netCDF4 import h5netcdf import xarray from xarray.backends.common import find_root_and_group root = netCDF4.Dataset("test.nc", "w", format="NETCDF4") test1 = root.createGroup("test1") test1.createGroup("test2") root.close() h5n = h5netcdf.File('test.nc') print(find_root_and_group(h5n['test1'])[1]) h5n.close() ``` This will output:
Expected Output
Problem DescriptionI stumbled over this while working on #3618. Although the function claims to retrieve root and group name of netCDF4/h5netcdf datasets the output for h5netcdf is broken. Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3680/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |