Skip to content

Commit d7c741c

Browse files
committed
Update version number to 0.1.0
1 parent b88fcd0 commit d7c741c

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ channels:
22
- conda-forge
33
dependencies:
44
- python =3.12
5-
- python-workflow-definition =0.0.1
5+
- python-workflow-definition =0.1.0

workflow.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
{
2+
"version": "0.1.0",
23
"nodes": [
3-
{"id": 0, "function": "workflow.get_prod_and_div"},
4-
{"id": 1, "function": "workflow.get_sum"},
5-
{"id": 2, "value": 1},
6-
{"id": 3, "value": 2}
4+
{"id": 0, "type": "function", "value": "workflow.get_prod_and_div"},
5+
{"id": 1, "type": "function", "value": "workflow.get_sum"},
6+
{"id": 2, "type": "function", "value": "workflow.get_square"},
7+
{"id": 3, "type": "input", "value": 1, "name": "x"},
8+
{"id": 4, "type": "input", "value": 2, "name": "y"},
9+
{"id": 5, "type": "output", "name": "result"}
710
],
811
"edges": [
9-
{"target": 0, "targetPort": "x", "source": 2, "sourcePort": null},
10-
{"target": 0, "targetPort": "y", "source": 3, "sourcePort": null},
12+
{"target": 0, "targetPort": "x", "source": 3, "sourcePort": null},
13+
{"target": 0, "targetPort": "y", "source": 4, "sourcePort": null},
1114
{"target": 1, "targetPort": "x", "source": 0, "sourcePort": "prod"},
12-
{"target": 1, "targetPort": "y", "source": 0, "sourcePort": "div"}
15+
{"target": 1, "targetPort": "y", "source": 0, "sourcePort": "div"},
16+
{"target": 2, "targetPort": "x", "source": 1, "sourcePort": null},
17+
{"target": 5, "targetPort": null, "source": 2, "sourcePort": null}
1318
]
14-
}
19+
}

workflow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ def get_prod_and_div(x, y):
44

55
def get_sum(x, y):
66
return x + y
7+
8+
9+
def get_square(x):
10+
return x ** 2

0 commit comments

Comments
 (0)