Skip to content

Commit 75b790d

Browse files
committed
Merge remote-tracking branch 'origin/main' into debug_nfdi
2 parents e93724b + 045a15c commit 75b790d

34 files changed

+1683
-1347
lines changed

.github/workflows/pipeline.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: psf/black@stable
1414
with:
1515
options: "--check --diff"
16-
src: ./python_workflow_definition/src/python_workflow_definition
16+
src: ./src/python_workflow_definition
1717
- uses: psf/black@stable
1818
with:
1919
options: "--check --diff"
@@ -35,7 +35,7 @@ jobs:
3535
- name: Pip check
3636
shell: bash -l {0}
3737
run: |
38-
pip install --no-deps --no-build-isolation -e python_workflow_definition
38+
pip install --no-deps --no-build-isolation -e .
3939
pip check
4040
4141
nfdi4ing:
@@ -53,7 +53,7 @@ jobs:
5353
- name: Installation and setup
5454
shell: bash -l {0}
5555
run: |
56-
pip install --no-deps --no-build-isolation -e python_workflow_definition
56+
pip install --no-deps --no-build-isolation -e .
5757
conda install -c conda-forge jupyter papermill
5858
verdi presto --profile-name pwd
5959
sudo apt-get install -y $(cat binder/apt.txt)
@@ -71,6 +71,7 @@ jobs:
7171
papermill cwl.ipynb cwl_out.ipynb -k "python3"
7272
papermill jobflow.ipynb jobflow_out.ipynb -k "python3"
7373
papermill pyiron_base.ipynb pyiron_base_out.ipynb -k "python3"
74+
papermill pyiron_workflow.ipynb pyiron_workflow_out.ipynb -k "python3"
7475
papermill universal_workflow.ipynb universal_workflow_out.ipynb -k "python3"
7576
7677
quantumespresso:
@@ -92,7 +93,7 @@ jobs:
9293
shell: bash -l {0}
9394
run: |
9495
pip install --no-deps --no-build-isolation -e example_workflows/quantum_espresso/qe_xml_parser
95-
pip install --no-deps --no-build-isolation -e python_workflow_definition
96+
pip install --no-deps --no-build-isolation -e .
9697
conda install -c conda-forge jupyter papermill
9798
verdi presto --profile-name pwd
9899
- name: Tests
@@ -105,6 +106,7 @@ jobs:
105106
papermill cwl.ipynb cwl_out.ipynb -k "python3"
106107
papermill jobflow.ipynb jobflow_out.ipynb -k "python3"
107108
papermill pyiron_base.ipynb pyiron_base_out.ipynb -k "python3"
109+
papermill pyiron_workflow.ipynb pyiron_workflow_out.ipynb -k "python3"
108110
papermill universal_workflow.ipynb universal_workflow_out.ipynb -k "python3"
109111
110112
arithmetic:
@@ -122,7 +124,7 @@ jobs:
122124
- name: Installation and setup
123125
shell: bash -l {0}
124126
run: |
125-
pip install --no-deps --no-build-isolation -e python_workflow_definition
127+
pip install --no-deps --no-build-isolation -e .
126128
conda install -c conda-forge jupyter papermill
127129
verdi presto --profile-name pwd
128130
- name: Tests
@@ -133,6 +135,7 @@ jobs:
133135
papermill cwl.ipynb cwl_out.ipynb -k "python3"
134136
papermill jobflow.ipynb jobflow_out.ipynb -k "python3"
135137
papermill pyiron_base.ipynb pyiron_base_out.ipynb -k "python3"
138+
papermill pyiron_workflow.ipynb pyiron_workflow_out.ipynb -k "python3"
136139
papermill universal_workflow.ipynb universal_workflow_out.ipynb -k "python3"
137140
138141
documentation:

.github/workflows/pypi.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ jobs:
2626
environment-file: binder/environment.yml
2727
- name: Build
2828
shell: bash -l {0}
29-
run: |
30-
cd python_workflow_definition
31-
hatch build -t sdist -t wheel
29+
run: hatch build -t sdist -t wheel
3230
- name: Publish distribution 📦 to PyPI
3331
uses: pypa/gh-action-pypi-publish@release/v1
3432
with:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ cython_debug/
178178
input_tmp.in
179179
pyiron.log
180180
pyiron_draw.png
181-
python_workflow_definition/src/python_workflow_definition/__pycache__/
181+
src/python_workflow_definition/__pycache__/
182182
test/
183183
mini/
184184
evcurve.png

binder/environment.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ channels:
22
- conda-forge
33
dependencies:
44
- python =3.12
5+
- click =8.1.8
56
- pydantic =2.11.4
67
- hatch =1.14.1
78
- hatchling =1.27.0
89
- httpcore =1.0.7
9-
- jobflow =0.1.19
10+
- jobflow =0.2.0
1011
- pyiron_base =0.12.0
12+
- pyiron_workflow =0.13.0
1113
- pygraphviz =1.14
1214
- aiida-workgraph =0.5.2
1315
- conda_subprocess =0.0.7

example_workflows/arithmetic/aiida.ipynb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,39 @@
232232
}
233233
],
234234
"execution_count": 15
235+
},
236+
{
237+
"metadata": {},
238+
"cell_type": "markdown",
239+
"source": "## Load Workflow with pyiron_workflow"
240+
},
241+
{
242+
"metadata": {},
243+
"cell_type": "code",
244+
"outputs": [],
245+
"execution_count": null,
246+
"source": "from python_workflow_definition.pyiron_workflow import load_workflow_json"
247+
},
248+
{
249+
"metadata": {},
250+
"cell_type": "code",
251+
"outputs": [],
252+
"execution_count": null,
253+
"source": "wf = load_workflow_json(file_name=workflow_json_filename)"
254+
},
255+
{
256+
"metadata": {},
257+
"cell_type": "code",
258+
"outputs": [],
259+
"execution_count": null,
260+
"source": "wf.draw(size=(10,10))"
261+
},
262+
{
263+
"metadata": {},
264+
"cell_type": "code",
265+
"outputs": [],
266+
"execution_count": null,
267+
"source": "wf.run()"
235268
}
236269
]
237270
}

example_workflows/arithmetic/jobflow.ipynb

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -369,18 +369,42 @@
369369
}
370370
},
371371
{
372-
"id": "c199b28f3c0399cc",
372+
"metadata": {},
373+
"cell_type": "markdown",
374+
"source": "## Load Workflow with pyiron_workflow",
375+
"id": "7da4733bfeffee63"
376+
},
377+
{
378+
"metadata": {},
379+
"cell_type": "code",
380+
"outputs": [],
381+
"execution_count": null,
382+
"source": "from python_workflow_definition.pyiron_workflow import load_workflow_json",
383+
"id": "6c87661996ff840b"
384+
},
385+
{
386+
"metadata": {},
387+
"cell_type": "code",
388+
"outputs": [],
389+
"execution_count": null,
390+
"source": "wf = load_workflow_json(file_name=workflow_json_filename)",
391+
"id": "33b1e9408924f9c0"
392+
},
393+
{
394+
"metadata": {},
395+
"cell_type": "code",
396+
"outputs": [],
397+
"execution_count": null,
398+
"source": "wf.draw(size=(10,10))",
399+
"id": "df63b2963a0d90a5"
400+
},
401+
{
402+
"metadata": {},
373403
"cell_type": "code",
374-
"source": "",
375-
"metadata": {
376-
"collapsed": false,
377-
"jupyter": {
378-
"outputs_hidden": false
379-
},
380-
"trusted": true
381-
},
382404
"outputs": [],
383-
"execution_count": null
405+
"execution_count": null,
406+
"source": "wf.run()",
407+
"id": "bf110395454bd694"
384408
}
385409
]
386410
}

example_workflows/arithmetic/pyiron_base.ipynb

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,15 +274,49 @@
274274
],
275275
"execution_count": 18
276276
},
277+
{
278+
"metadata": {},
279+
"cell_type": "markdown",
280+
"source": "## Load Workflow with pyiron_workflow",
281+
"id": "406fd07dd4bd8006"
282+
},
277283
{
278284
"id": "cf76f305-24de-45a7-be8e-cfe45cd6458e",
279285
"cell_type": "code",
280-
"source": "",
286+
"source": "from python_workflow_definition.pyiron_workflow import load_workflow_json",
281287
"metadata": {
282-
"trusted": true
288+
"trusted": true,
289+
"ExecuteTime": {
290+
"end_time": "2025-05-24T08:25:33.797570Z",
291+
"start_time": "2025-05-24T08:25:33.771214Z"
292+
}
283293
},
284294
"outputs": [],
285295
"execution_count": null
296+
},
297+
{
298+
"metadata": {},
299+
"cell_type": "code",
300+
"outputs": [],
301+
"execution_count": null,
302+
"source": "wf = load_workflow_json(file_name=workflow_json_filename)",
303+
"id": "5b442611457aa5a8"
304+
},
305+
{
306+
"metadata": {},
307+
"cell_type": "code",
308+
"outputs": [],
309+
"execution_count": null,
310+
"source": "wf.draw(size=(10,10))",
311+
"id": "2ca33c8590a54866"
312+
},
313+
{
314+
"metadata": {},
315+
"cell_type": "code",
316+
"outputs": [],
317+
"execution_count": null,
318+
"source": "wf.run()",
319+
"id": "d36522a1c315b7f5"
286320
}
287321
]
288322
}

0 commit comments

Comments
 (0)