MCPcopy Index your code
hub / github.com/google-deepmind/dm_control / include_copy

Method include_copy

dm_control/mjcf/element.py:1263–1267  ·  view source on GitHub ↗
(self, other, override_attributes=False)

Source from the content-addressed store, hash-verified

1261 self.namescope.parent = None
1262
1263 def include_copy(self, other, override_attributes=False):
1264 other_copier = copier.Copier(other)
1265 new_elements = other_copier.copy_into(self, override_attributes)
1266 self._update_references(new_elements)
1267 self.namescope.increment_revision()
1268
1269 @property
1270 def parent_model(self):

Callers 5

__copy__Method · 0.95
testCopyingWithAssetsMethod · 0.95
_parseFunction · 0.95
testSimpleCopyMethod · 0.80

Calls 3

copy_intoMethod · 0.95
_update_referencesMethod · 0.80
increment_revisionMethod · 0.80

Tested by 3

testCopyingWithAssetsMethod · 0.76
testSimpleCopyMethod · 0.64