MCPcopy Create free account
hub / github.com/TeleHuman/PBHC / BasePlotterTask

Class BasePlotterTask

smpl_retarget/poselib/poselib/visualization/core.py:15–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15class BasePlotterTask(object):
16 _task_name: str # unique name of the task
17 _task_type: str # type of the task is used to identify which callable
18
19 def __init__(self, task_name: str, task_type: str) -> None:
20 self._task_name = task_name
21 self._task_type = task_type
22
23 @property
24 def task_name(self):
25 return self._task_name
26
27 @property
28 def task_type(self):
29 return self._task_type
30
31 def get_scoped_name(self, name):
32 return self._task_name + "/" + name
33
34 def __iter__(self):
35 """Should override this function to return a list of task primitives
36 """
37 raise NotImplementedError
38
39
40class BasePlotterTasks(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected