From d7c741cf6c6ea0212bff7270663564681ebe1fc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jan=C3=9Fen?= Date: Sat, 17 May 2025 06:21:34 +0200 Subject: [PATCH] Update version number to 0.1.0 --- environment.yml | 2 +- workflow.json | 21 +++++++++++++-------- workflow.py | 4 ++++ 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/environment.yml b/environment.yml index 76eb70b..1499e30 100644 --- a/environment.yml +++ b/environment.yml @@ -2,4 +2,4 @@ channels: - conda-forge dependencies: - python =3.12 -- python-workflow-definition =0.0.1 +- python-workflow-definition =0.1.0 diff --git a/workflow.json b/workflow.json index e68cfc7..7aa94a8 100644 --- a/workflow.json +++ b/workflow.json @@ -1,14 +1,19 @@ { + "version": "0.1.0", "nodes": [ - {"id": 0, "function": "workflow.get_prod_and_div"}, - {"id": 1, "function": "workflow.get_sum"}, - {"id": 2, "value": 1}, - {"id": 3, "value": 2} + {"id": 0, "type": "function", "value": "workflow.get_prod_and_div"}, + {"id": 1, "type": "function", "value": "workflow.get_sum"}, + {"id": 2, "type": "function", "value": "workflow.get_square"}, + {"id": 3, "type": "input", "value": 1, "name": "x"}, + {"id": 4, "type": "input", "value": 2, "name": "y"}, + {"id": 5, "type": "output", "name": "result"} ], "edges": [ - {"target": 0, "targetPort": "x", "source": 2, "sourcePort": null}, - {"target": 0, "targetPort": "y", "source": 3, "sourcePort": null}, + {"target": 0, "targetPort": "x", "source": 3, "sourcePort": null}, + {"target": 0, "targetPort": "y", "source": 4, "sourcePort": null}, {"target": 1, "targetPort": "x", "source": 0, "sourcePort": "prod"}, - {"target": 1, "targetPort": "y", "source": 0, "sourcePort": "div"} + {"target": 1, "targetPort": "y", "source": 0, "sourcePort": "div"}, + {"target": 2, "targetPort": "x", "source": 1, "sourcePort": null}, + {"target": 5, "targetPort": null, "source": 2, "sourcePort": null} ] -} +} \ No newline at end of file diff --git a/workflow.py b/workflow.py index 3a12993..52d4678 100644 --- a/workflow.py +++ b/workflow.py @@ -4,3 +4,7 @@ def get_prod_and_div(x, y): def get_sum(x, y): return x + y + + +def get_square(x): + return x ** 2 \ No newline at end of file