MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / update_namespaces_from_spec

Function update_namespaces_from_spec

dm_control/mjcf/schema.py:185–189  ·  view source on GitHub ↗
(spec)

Source from the content-addressed store, hash-verified

183 """
184 findable_namespaces = set()
185 def update_namespaces_from_spec(spec):
186 findable_namespaces.add(spec.namespace)
187 for child_spec in spec.children.values():
188 if child_spec is not spec:
189 update_namespaces_from_spec(child_spec)
190 update_namespaces_from_spec(root_spec)
191 return findable_namespaces
192

Callers 1

collect_namespacesFunction · 0.85

Calls 2

valuesMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…