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

Method _before_clear

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

Source from the content-addressed store, hash-verified

339 self._value = value
340
341 def _before_clear(self):
342 if isinstance(self._value, base.Element):
343 if isinstance(self._reference_namespace, _Attribute):
344 self._reference_namespace._force_clear() # pylint: disable=protected-access
345
346 def _defaults_string(self, prefix_root):
347 """Generates the XML string if this is a reference to a defaults class.

Callers

nothing calls this directly

Calls 1

_force_clearMethod · 0.80

Tested by

no test coverage detected