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

Method set

dm_control/viewer/util.py:112–119  ·  view source on GitHub ↗

Modifies the time factor. Args: value: A float scalar, new value of the time factor.

(self, value)

Source from the content-addressed store, hash-verified

110 return self._real_time_multiplier
111
112 def set(self, value):
113 """Modifies the time factor.
114
115 Args:
116 value: A float scalar, new value of the time factor.
117 """
118 self._real_time_multiplier = max(
119 _MIN_TIME_MULTIPLIER, min(_MAX_TIME_MULTIPLIER, value))
120
121 def __str__(self):
122 """Returns a formatted string containing the time factor."""

Callers 13

__init__Method · 0.95
increaseMethod · 0.95
decreaseMethod · 0.95
_make_modelFunction · 0.80
_make_bodyFunction · 0.80
_make_bodyFunction · 0.80
_make_modelFunction · 0.80
_make_modelFunction · 0.80
_attributes_to_xmlMethod · 0.80
to_xmlMethod · 0.80
to_xmlMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected