(root, parent="/")
| 240 | |
| 241 | |
| 242 | def _iter_nc_groups(root, parent="/"): |
| 243 | from xarray.core.treenode import NodePath |
| 244 | |
| 245 | parent = NodePath(parent) |
| 246 | yield str(parent) |
| 247 | for path, group in root.groups.items(): |
| 248 | gpath = parent / path |
| 249 | yield from _iter_nc_groups(group, parent=gpath) |
| 250 | |
| 251 | |
| 252 | def find_root_and_group(ds): |
no test coverage detected
searching dependent graphs…