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

Method __setstate__

dm_control/mujoco/engine.py:373–378  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

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`.

Callers

nothing calls this directly

Calls 1

_reload_from_dataMethod · 0.95

Tested by

no test coverage detected