MCPcopy Create free account
hub / github.com/Vegetebird/GraphMLP / define_actions

Function define_actions

common/utils.py:120–132  ·  view source on GitHub ↗
( action )

Source from the content-addressed store, hash-verified

118
119
120def define_actions( action ):
121 actions = ["Directions","Discussion","Eating","Greeting",
122 "Phoning","Photo","Posing","Purchases",
123 "Sitting","SittingDown","Smoking","Waiting",
124 "WalkDog","Walking","WalkTogether"]
125
126 if action == "All" or action == "all" or action == '*':
127 return actions
128
129 if not action in actions:
130 raise( ValueError, "Unrecognized action: %s" % action )
131
132 return [action]
133
134
135def define_actions_3dhp( action, train ):

Callers 1

main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected