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

Method set_runtime

dm_control/viewer/application.py:121–133  ·  view source on GitHub ↗

Updates the active runtime instance. Args: instance: Instance of runtime.Base.

(self, instance)

Source from the content-addressed store, hash-verified

119 self._camera = camera
120
121 def set_runtime(self, instance):
122 """Updates the active runtime instance.
123
124 Args:
125 instance: Instance of runtime.Base.
126 """
127 if self._runtime:
128 self._runtime.on_error -= self._on_error
129 self._runtime.on_episode_begin -= self._clear_error
130 self._runtime = instance
131 if self._runtime:
132 self._runtime.on_error += self._on_error
133 self._runtime.on_episode_begin += self._clear_error
134
135 def get_columns(self):
136 """Returns the text to display in two columns."""

Callers 1

_load_environmentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected