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

Method clear

dm_control/mjcf/attribute.py:88–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 raise NotImplementedError # pragma: no cover
87
88 def clear(self):
89 if self._required:
90 raise AttributeError(
91 'Attribute {!r} of element <{}> is required'
92 .format(self._name, self._parent.tag))
93 else:
94 self._force_clear()
95
96 def _force_clear(self):
97 self._before_clear()

Callers 12

_check_and_assignMethod · 0.95
_assignMethod · 0.45
_assignMethod · 0.45
_assignMethod · 0.45
_check_dead_referenceMethod · 0.45
_assignMethod · 0.45
_assignMethod · 0.45
_assignMethod · 0.45
regenerateMethod · 0.45
regenerateMethod · 0.45
regenerateMethod · 0.45
_buildMethod · 0.45

Calls 1

_force_clearMethod · 0.95

Tested by

no test coverage detected