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

Function override_schema

dm_control/mjcf/schema.py:248–262  ·  view source on GitHub ↗

Override the schema with a custom xml. This method updates several global variables and care should be taken not to call it if the pre-update values have already been used. Args: schema_xml_path: Path to schema xml file.

(schema_xml_path)

Source from the content-addressed store, hash-verified

246
247
248def override_schema(schema_xml_path):
249 """Override the schema with a custom xml.
250
251 This method updates several global variables and care should be taken not to
252 call it if the pre-update values have already been used.
253
254 Args:
255 schema_xml_path: Path to schema xml file.
256 """
257 global MUJOCO
258 global FINDABLE_NAMESPACES
259
260 MUJOCO = parse_schema(schema_xml_path)
261 FINDABLE_NAMESPACES = frozenset(
262 collect_namespaces(MUJOCO).union(_ADDITIONAL_FINDABLE_NAMESPACES))

Callers

nothing calls this directly

Calls 2

parse_schemaFunction · 0.85
collect_namespacesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…