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

Function wrapped_func

dm_control/viewer/gui/glfw_gui.py:30–36  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

28 """Decorator which checks that GLFW is being used for offscreen rendering."""
29 @functools.wraps(func)
30 def wrapped_func(*args, **kwargs):
31 if _render.BACKEND != 'glfw':
32 raise RuntimeError(
33 '{func} may only be called if using GLFW for offscreen rendering, '
34 'got `render.BACKEND={backend!r}`.'.format(
35 func=func, backend=_render.BACKEND))
36 return func(*args, **kwargs)
37 return wrapped_func
38
39

Callers

nothing calls this directly

Calls 1

funcFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…