Skip to content

Electron dependency tables #813

Answered by FyzHsn
FyzHsn asked this question in Q&A
Discussion options

You must be logged in to vote
  1. The parameter_type can indeed take the values arg, kwarg and NULL. Sample workflow to generate kwarg:
@ct.electron
def task_1(x, y):
    return {'key_1': x * y, 'key_2': x + y}
#     return [x * y, x + y]


@ct.electron
def sublattice_task(z):
    return z

@ct.electron
@ct.lattice
def task_2(z):
    res = sublattice_task(z)
    return res


@ct.lattice
def workflow(a, b):
    res_1 = task_1(x=a, y=b)
    res_2 = task_2(res_1['key_1'])
    return res_2
  1. When the param_type is arg, the arg_index is an integer. Otherwise, the arg_index is NULL.

Replies: 1 comment

Comment options

FyzHsn
Jul 13, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by FyzHsn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant