(self, data)
| 371 | return self.data # All state is assumed to reside within `self.data`. |
| 372 | |
| 373 | def __setstate__(self, data): |
| 374 | # Note: `_contexts_lock` is normally created in `__new__`, but `__new__` is |
| 375 | # not invoked during unpickling. |
| 376 | self._contexts_lock = threading.Lock() |
| 377 | self._warnings_cause_exception = True |
| 378 | self._reload_from_data(data) |
| 379 | |
| 380 | def _reload_from_model(self, model): |
| 381 | """Initializes a new or existing `Physics` from a `wrapper.MjModel`. |
nothing calls this directly
no test coverage detected