What is an example of a workflow that generates an attribute_name in a node? #789
-
In the database schema, there is an I can see where this value is set in the node, but I'm not sure how to get this block to execute. I previously tried to write tests for this block (it is uncovered), but struggled there as well. Could someone share an example workflow that generates this type of node? Loosely related to #760 |
Beta Was this translation helpful? Give feedback.
Answered by
kessler-frost
Jul 6, 2022
Replies: 1 comment 1 reply
-
Example workflow for attribute node: import covalent as ct
class Test:
def __init__(self):
self.exampling = 210
@ct.electron
def task_1():
return Test()
@ct.electron
def task_2(x):
return x * 2
@ct.lattice
def workflow():
res_1 = task_1()
res_2 = task_2(res_1.exampling)
return res_2
result = ct.dispatch_sync(workflow)()
print(result) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kessler-frost
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example workflow for attribute node: