Skip to content

Commit 4f5f85d

Browse files
committed
Add square step to arithmetic workflow. Add JSON write and read methods to workflow model.
1 parent 9a3e4a8 commit 4f5f85d

File tree

7 files changed

+1086
-350
lines changed

7 files changed

+1086
-350
lines changed

example_workflows/arithmetic/aiida.ipynb

Lines changed: 195 additions & 117 deletions
Large diffs are not rendered by default.

example_workflows/arithmetic/workflow.py

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

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

python_workflow_definition/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ dependencies = [
2020
"numpy>=1.21,<2",
2121
"jobflow>=0.1.18,<=0.1.19",
2222
"pyiron_base>=0.11.10,<=0.11.11",
23+
"pydantic",
24+
"rich"
2325
]
2426

2527
[project.optional-dependencies]

python_workflow_definition/src/python_workflow_definition/_pydantic/__init__.py

Whitespace-only changes.

python_workflow_definition/src/python_workflow_definition/_pydantic/models.py

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)