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

Method _assign

dm_control/mjcf/attribute.py:126–132  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

124 """A string MJCF attribute."""
125
126 def _assign(self, value):
127 if not isinstance(value, str):
128 raise ValueError('Expect a string value: got {}'.format(value))
129 elif not value:
130 self.clear()
131 else:
132 self._value = value
133
134
135class Integer(_Attribute):

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected