Skip to content

Commit 7973799

Browse files
authored
Merge branch 'main' into aw
2 parents d1f48c4 + f8ba185 commit 7973799

File tree

19 files changed

+1657
-1374
lines changed

19 files changed

+1657
-1374
lines changed

.github/workflows/pipeline.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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:
@@ -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:
@@ -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:

binder/environment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ channels:
33
dependencies:
44
- python =3.12
55
- click =8.1.8
6-
- pydantic =2.11.4
7-
- hatch =1.14.1
6+
- pydantic =2.12.3
87
- hatchling =1.27.0
98
- httpcore =1.0.7
109
- jobflow =0.2.0
1110
- pyiron_base =0.12.0
11+
- pyiron_workflow =0.13.0
1212
- pygraphviz =1.14
1313
- aiida-workgraph =0.7.4
1414
- conda_subprocess =0.0.7
15-
- networkx =3.4.2
15+
- networkx =3.5
1616
- cwltool =3.1.20250110105449

example_workflows/arithmetic/aiida.ipynb

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -410,28 +410,40 @@
410410
"output_type": "execute_result"
411411
}
412412
],
413-
"source": [
414-
"delayed_object_lst[-1].pull()"
415-
]
416-
}
417-
],
418-
"metadata": {
419-
"kernelspec": {
420-
"display_name": "Python 3 (ipykernel)",
421-
"language": "python",
422-
"name": "python3"
413+
"execution_count": 15
414+
},
415+
{
416+
"metadata": {},
417+
"cell_type": "markdown",
418+
"source": "## Load Workflow with pyiron_workflow"
419+
},
420+
{
421+
"metadata": {},
422+
"cell_type": "code",
423+
"outputs": [],
424+
"execution_count": null,
425+
"source": "from python_workflow_definition.pyiron_workflow import load_workflow_json"
426+
},
427+
{
428+
"metadata": {},
429+
"cell_type": "code",
430+
"outputs": [],
431+
"execution_count": null,
432+
"source": "wf = load_workflow_json(file_name=workflow_json_filename)"
423433
},
424-
"language_info": {
425-
"codemirror_mode": {
426-
"name": "ipython",
427-
"version": 3
428-
},
429-
"file_extension": ".py",
430-
"mimetype": "text/x-python",
431-
"name": "python",
432-
"nbconvert_exporter": "python",
433-
"pygments_lexer": "ipython3",
434-
"version": "3.10.12"
434+
{
435+
"metadata": {},
436+
"cell_type": "code",
437+
"outputs": [],
438+
"execution_count": null,
439+
"source": "wf.draw(size=(10,10))"
440+
},
441+
{
442+
"metadata": {},
443+
"cell_type": "code",
444+
"outputs": [],
445+
"execution_count": null,
446+
"source": "wf.run()"
435447
}
436448
},
437449
"nbformat": 4,

example_workflows/arithmetic/jobflow.ipynb

Lines changed: 33 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -577,36 +577,42 @@
577577
]
578578
},
579579
{
580+
"metadata": {},
581+
"cell_type": "markdown",
582+
"source": "## Load Workflow with pyiron_workflow",
583+
"id": "7da4733bfeffee63"
584+
},
585+
{
586+
"metadata": {},
580587
"cell_type": "code",
588+
"outputs": [],
581589
"execution_count": null,
582-
"id": "c199b28f3c0399cc",
583-
"metadata": {
584-
"collapsed": false,
585-
"jupyter": {
586-
"outputs_hidden": false
587-
}
588-
},
590+
"source": "from python_workflow_definition.pyiron_workflow import load_workflow_json",
591+
"id": "6c87661996ff840b"
592+
},
593+
{
594+
"metadata": {},
595+
"cell_type": "code",
589596
"outputs": [],
590-
"source": []
591-
}
592-
],
593-
"metadata": {
594-
"kernelspec": {
595-
"display_name": "PWD",
596-
"language": "python",
597-
"name": "pwd"
598-
},
599-
"language_info": {
600-
"codemirror_mode": {
601-
"name": "ipython",
602-
"version": 3
603-
},
604-
"file_extension": ".py",
605-
"mimetype": "text/x-python",
606-
"name": "python",
607-
"nbconvert_exporter": "python",
608-
"pygments_lexer": "ipython3",
609-
"version": "3.10.12"
597+
"execution_count": null,
598+
"source": "wf = load_workflow_json(file_name=workflow_json_filename)",
599+
"id": "33b1e9408924f9c0"
600+
},
601+
{
602+
"metadata": {},
603+
"cell_type": "code",
604+
"outputs": [],
605+
"execution_count": null,
606+
"source": "wf.draw(size=(10,10))",
607+
"id": "df63b2963a0d90a5"
608+
},
609+
{
610+
"metadata": {},
611+
"cell_type": "code",
612+
"outputs": [],
613+
"execution_count": null,
614+
"source": "wf.run()",
615+
"id": "bf110395454bd694"
610616
}
611617
},
612618
"nbformat": 4,

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)