Debian Codegraph @

doc/samples/getargs_group.py

raw symbols SCIP
1 def task_compute():
2 def comp(x):
3 return {'x':x}
4 yield {'name': '5',
5 'actions': [ (comp, [5]) ]
6 }
7 yield {'name': '7',
8 'actions': [ (comp, [7]) ]
9 }
10
11
12 def show_getargs(values):
13 print(values)
14 assert sum(v['x'] for v in values.values()) == 12
15
16 def task_args_dict():
17 return {'actions': [show_getargs],
18 'getargs': {'values': ('compute', None)},
19 'verbosity': 2,
20 }