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

Function _log_xml

dm_control/mjcf/physics.py:423–431  ·  view source on GitHub ↗
(xml_string)

Source from the content-addressed store, hash-verified

421
422
423def _log_xml(xml_string):
424 xml_lines = xml_string.split('\n')
425 for start_line in range(0, len(xml_lines), _XML_PRINT_SHARD_SIZE):
426 end_line = min(start_line + _XML_PRINT_SHARD_SIZE, len(xml_lines))
427 template = 'XML lines %d-%d of %d:\n%s'
428 if start_line == 0:
429 template = 'PyMJCF: compiling generated XML:\n' + template
430 logging.info(template, start_line + 1, end_line, len(xml_lines),
431 '\n'.join(xml_lines[start_line:end_line]))
432
433
434class Physics(mujoco.Physics):

Callers 2

from_mjcf_modelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…