A named constructor from a model binary as a byte string.
(cls, byte_string)
| 467 | |
| 468 | @classmethod |
| 469 | def from_byte_string(cls, byte_string): |
| 470 | """A named constructor from a model binary as a byte string.""" |
| 471 | model = wrapper.MjModel.from_byte_string(byte_string) |
| 472 | return cls.from_model(model) |
| 473 | |
| 474 | @classmethod |
| 475 | def from_xml_path(cls, file_path): |
nothing calls this directly
no test coverage detected