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

Method _validate_extension

dm_control/mjcf/attribute.py:561–564  ·  view source on GitHub ↗
(self, extension)

Source from the content-addressed store, hash-verified

559 return Asset(contents=contents, extension=extension, prefix=filename)
560
561 def _validate_extension(self, extension):
562 if self._parent.tag == constants.MESH:
563 if extension.lower() not in _MESH_EXTENSIONS:
564 raise ValueError(_INVALID_MESH_EXTENSION.format(extension))
565
566 def get_contents(self):
567 """Returns a bytestring representing the contents of the asset."""

Callers 1

_assignMethod · 0.95

Calls 1

lowerMethod · 0.80

Tested by

no test coverage detected