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

Method _remove_attribute

dm_control/mjcf/element.py:586–589  ·  view source on GitHub ↗
(self, attribute_name)

Source from the content-addressed store, hash-verified

584 f'element <{self._spec.name}>: {err}').with_traceback(tb)
585
586 def _remove_attribute(self, attribute_name):
587 self._check_valid_attribute(attribute_name)
588 self._attributes[attribute_name].clear()
589 self.namescope.increment_revision()
590
591 def _check_valid_child(self, element_name):
592 try:

Callers 1

__delattr__Method · 0.95

Calls 3

increment_revisionMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected