Updates the active runtime instance. Args: instance: Instance of runtime.Base.
(self, instance)
| 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.""" |