(xml_string)
| 421 | |
| 422 | |
| 423 | def _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 | |
| 434 | class Physics(mujoco.Physics): |
no outgoing calls
no test coverage detected
searching dependent graphs…