MCPcopy Index your code
hub / github.com/pydata/xarray / _iter_nc_groups

Function _iter_nc_groups

xarray/backends/common.py:242–249  ·  view source on GitHub ↗
(root, parent="/")

Source from the content-addressed store, hash-verified

240
241
242def _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
252def find_root_and_group(ds):

Callers 2

open_groups_as_dictMethod · 0.90
open_groups_as_dictMethod · 0.90

Calls 2

NodePathClass · 0.90
itemsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…