MCPcopy Create free account
hub / github.com/AdaptiveMotorControlLab/FMPose3D / define_actions

Function define_actions

fmpose3d/common/utils.py:172–198  ·  view source on GitHub ↗
(action)

Source from the content-addressed store, hash-verified

170
171
172def define_actions(action):
173
174 actions = [
175 "Directions",
176 "Discussion",
177 "Eating",
178 "Greeting",
179 "Phoning",
180 "Photo",
181 "Posing",
182 "Purchases",
183 "Sitting",
184 "SittingDown",
185 "Smoking",
186 "Waiting",
187 "WalkDog",
188 "Walking",
189 "WalkTogether",
190 ]
191
192 if action == "All" or action == "all" or action == "*":
193 return actions
194
195 if not action in actions:
196 raise (ValueError, "Unrecognized action: %s" % action)
197
198 return [action]
199
200
201def define_error_list(actions):

Callers 1

FMPose3D_main.pyFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected