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

Method __init__

dm_control/mjcf/element.py:1216–1221  ·  view source on GitHub ↗
(self, model=None, model_dir='', assets=None)

Source from the content-addressed store, hash-verified

1214 __slots__ = ['_namescope']
1215
1216 def __init__(self, model=None, model_dir='', assets=None):
1217 model = model or 'unnamed_model'
1218 self._namescope = namescope.NameScope(
1219 model, self, model_dir=model_dir, assets=assets)
1220 super().__init__(
1221 spec=schema.MUJOCO, parent=None, attributes={'model': model})
1222
1223 def _attach(self, other, exclude_worldbody=False, dry_run=False):
1224 self._check_valid_attachment(other)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected