Skip to content

Commit b0b97df

Browse files
committed
fix import
1 parent b61ba76 commit b0b97df

File tree

9 files changed

+100
-122
lines changed

9 files changed

+100
-122
lines changed

example_workflows/arithmetic/aiida_arithmetic.ipynb

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,23 @@
4141
"execution_count": 1
4242
},
4343
{
44+
"metadata": {},
4445
"cell_type": "code",
46+
"outputs": [],
47+
"execution_count": null,
4548
"source": [
46-
"from example_workflows.arithmetic.arithmetic_workflow import (\n",
49+
"from arithmetic_workflow import (\n",
4750
" get_sum as _get_sum,\n",
4851
" get_prod_and_div as _get_prod_and_div,\n",
4952
")"
50-
],
51-
"metadata": {
52-
"trusted": true
53-
},
54-
"outputs": [],
55-
"execution_count": 2
53+
]
5654
},
5755
{
56+
"metadata": {},
5857
"cell_type": "code",
59-
"source": "wg = WorkGraph(\"arithmetic\")",
60-
"metadata": {
61-
"trusted": true
62-
},
6358
"outputs": [],
64-
"execution_count": 3
59+
"execution_count": null,
60+
"source": "wg = WorkGraph(\"arithmetic\")"
6561
},
6662
{
6763
"cell_type": "code",

example_workflows/arithmetic/jobflow_arithmetic.ipynb

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,29 +60,25 @@
6060
"execution_count": 2
6161
},
6262
{
63-
"id": "fb847d49-7bf9-4839-9b99-c116d1b0e9ee",
63+
"metadata": {},
6464
"cell_type": "code",
65+
"outputs": [],
66+
"execution_count": null,
6567
"source": [
66-
"from example_workflows.arithmetic.arithmetic_workflow import (\n",
68+
"from arithmetic_workflow import (\n",
6769
" get_sum as _get_sum,\n",
6870
" get_prod_and_div as _get_prod_and_div,\n",
6971
")"
7072
],
71-
"metadata": {
72-
"trusted": true
73-
},
74-
"outputs": [],
75-
"execution_count": 3
73+
"id": "f9217ce7b093b5fc"
7674
},
7775
{
78-
"id": "8f95244e",
76+
"metadata": {},
7977
"cell_type": "code",
80-
"source": "workflow_json_filename = \"jobflow_simple.json\"",
81-
"metadata": {
82-
"trusted": true
83-
},
8478
"outputs": [],
85-
"execution_count": 4
79+
"execution_count": null,
80+
"source": "workflow_json_filename = \"jobflow_simple.json\"",
81+
"id": "1feba0898ee4e361"
8682
},
8783
{
8884
"id": "07598344-0f75-433b-8902-bea21a42088c",

example_workflows/arithmetic/pyiron_base_arithmetic.ipynb

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,29 +54,25 @@
5454
"execution_count": 2
5555
},
5656
{
57-
"id": "fb847d49-7bf9-4839-9b99-c116d1b0e9ee",
57+
"metadata": {},
5858
"cell_type": "code",
59+
"outputs": [],
60+
"execution_count": null,
5961
"source": [
60-
"from example_workflows.arithmetic.arithmetic_workflow import (\n",
62+
"from arithmetic_workflow import (\n",
6163
" get_sum as _get_sum,\n",
6264
" get_prod_and_div as _get_prod_and_div,\n",
6365
")"
6466
],
65-
"metadata": {
66-
"trusted": true
67-
},
68-
"outputs": [],
69-
"execution_count": 3
67+
"id": "6d859dfff0c2df5c"
7068
},
7169
{
72-
"id": "8f95244e",
70+
"metadata": {},
7371
"cell_type": "code",
74-
"source": "workflow_json_filename = \"pyiron_arithmetic.json\"",
75-
"metadata": {
76-
"trusted": true
77-
},
7872
"outputs": [],
79-
"execution_count": 4
73+
"execution_count": null,
74+
"source": "workflow_json_filename = \"pyiron_arithmetic.json\"",
75+
"id": "77135b0c61898507"
8076
},
8177
{
8278
"id": "07598344-0f75-433b-8902-bea21a42088c",

example_workflows/nfdi/aiida_nfdi.ipynb

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@
5353
"execution_count": 1
5454
},
5555
{
56-
"id": "a76e6c0a-98f2-4436-af10-8097da183341",
56+
"metadata": {},
5757
"cell_type": "code",
58+
"outputs": [],
59+
"execution_count": null,
5860
"source": [
59-
"from example_workflows.nfdi.nfdi_ing_workflow import (\n",
61+
"from nfdi_ing_workflow import (\n",
6062
" generate_mesh,\n",
6163
" convert_to_xdmf as _convert_to_xdmf,\n",
6264
" poisson as _poisson,\n",
@@ -65,21 +67,18 @@
6567
" compile_paper,\n",
6668
")"
6769
],
68-
"metadata": {
69-
"trusted": true
70-
},
71-
"outputs": [],
72-
"execution_count": 2
70+
"id": "6dac225a1ce86b25"
7371
},
7472
{
75-
"id": "549ecf27-88ef-4e77-8bd4-b616cfdda2e4",
73+
"metadata": {},
7674
"cell_type": "code",
77-
"source": "convert_to_xdmf = task(outputs=[\"xdmf_file\", \"h5_file\"])(_convert_to_xdmf)\npoisson = task(outputs=[\"numdofs\", \"pvd_file\", \"vtu_file\"])(_poisson)",
78-
"metadata": {
79-
"trusted": true
80-
},
8175
"outputs": [],
82-
"execution_count": 3
76+
"execution_count": null,
77+
"source": [
78+
"convert_to_xdmf = task(outputs=[\"xdmf_file\", \"h5_file\"])(_convert_to_xdmf)\n",
79+
"poisson = task(outputs=[\"numdofs\", \"pvd_file\", \"vtu_file\"])(_poisson)"
80+
],
81+
"id": "c47205d289499756"
8382
},
8483
{
8584
"id": "8d911f98-3b80-457f-a0f4-3cb37ebf1691",

example_workflows/nfdi/jobflow_nfdi.ipynb

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@
5656
"execution_count": 1
5757
},
5858
{
59-
"id": "a76e6c0a-98f2-4436-af10-8097da183341",
59+
"metadata": {},
6060
"cell_type": "code",
61+
"outputs": [],
62+
"execution_count": null,
6163
"source": [
62-
"from example_workflows.nfdi.nfdi_ing_workflow import (\n",
64+
"from nfdi_ing_workflow import (\n",
6365
" generate_mesh as _generate_mesh, \n",
6466
" convert_to_xdmf as _convert_to_xdmf,\n",
6567
" poisson as _poisson,\n",
@@ -68,21 +70,22 @@
6870
" compile_paper as _compile_paper,\n",
6971
")"
7072
],
71-
"metadata": {
72-
"trusted": true
73-
},
74-
"outputs": [],
75-
"execution_count": 2
73+
"id": "864f048d78ea3f08"
7674
},
7775
{
78-
"id": "549ecf27-88ef-4e77-8bd4-b616cfdda2e4",
76+
"metadata": {},
7977
"cell_type": "code",
80-
"source": "generate_mesh = job(_generate_mesh)\nconvert_to_xdmf = job(_convert_to_xdmf, data=[\"xdmf_file\", \"h5_file\"])\npoisson = job(_poisson, data=[\"numdofs\", \"pvd_file\", \"vtu_file\"])\nplot_over_line = job(_plot_over_line)\nsubstitute_macros = job(_substitute_macros)\ncompile_paper = job(_compile_paper)",
81-
"metadata": {
82-
"trusted": true
83-
},
8478
"outputs": [],
85-
"execution_count": 3
79+
"execution_count": null,
80+
"source": [
81+
"generate_mesh = job(_generate_mesh)\n",
82+
"convert_to_xdmf = job(_convert_to_xdmf, data=[\"xdmf_file\", \"h5_file\"])\n",
83+
"poisson = job(_poisson, data=[\"numdofs\", \"pvd_file\", \"vtu_file\"])\n",
84+
"plot_over_line = job(_plot_over_line)\n",
85+
"substitute_macros = job(_substitute_macros)\n",
86+
"compile_paper = job(_compile_paper)"
87+
],
88+
"id": "147b81b7b494ceda"
8689
},
8790
{
8891
"id": "8d911f98-3b80-457f-a0f4-3cb37ebf1691",

example_workflows/nfdi/pyiron_base_nfdi.ipynb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@
3434
"metadata": {}
3535
},
3636
{
37-
"id": "a76e6c0a-98f2-4436-af10-8097da183341",
37+
"metadata": {},
3838
"cell_type": "code",
39+
"outputs": [],
40+
"execution_count": null,
3941
"source": [
40-
"from example_workflows.nfdi.nfdi_ing_workflow import (\n",
42+
"from nfdi_ing_workflow import (\n",
4143
" generate_mesh as _generate_mesh, \n",
4244
" convert_to_xdmf as _convert_to_xdmf,\n",
4345
" poisson as _poisson,\n",
@@ -46,21 +48,19 @@
4648
" compile_paper as _compile_paper,\n",
4749
")"
4850
],
49-
"metadata": {
50-
"trusted": true
51-
},
52-
"outputs": [],
53-
"execution_count": 1
51+
"id": "d265bb5aa6af79d6"
5452
},
5553
{
56-
"id": "89c02460-b543-442c-a27e-f1757dc2262e",
54+
"metadata": {},
5755
"cell_type": "code",
58-
"source": "from pyiron_base import job\n\nfrom python_workflow_definition.pyiron_base import write_workflow_json",
59-
"metadata": {
60-
"trusted": true
61-
},
6256
"outputs": [],
63-
"execution_count": 2
57+
"execution_count": null,
58+
"source": [
59+
"from pyiron_base import job\n",
60+
"\n",
61+
"from python_workflow_definition.pyiron_base import write_workflow_json"
62+
],
63+
"id": "2dced28725813fc1"
6464
},
6565
{
6666
"id": "549ecf27-88ef-4e77-8bd4-b616cfdda2e4",

example_workflows/quantum_espresso/aiida_qe.ipynb

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -50,36 +50,32 @@
5050
"execution_count": 2
5151
},
5252
{
53+
"metadata": {},
5354
"cell_type": "code",
54-
"source": [
55-
"from example_workflows.quantum_espresso.quantum_espresso_workflow import generate_structures\n",
56-
"from example_workflows.quantum_espresso.quantum_espresso_workflow import get_bulk_structure\n",
57-
"from example_workflows.quantum_espresso.quantum_espresso_workflow import calculate_qe as _calculate_qe\n",
58-
"from example_workflows.quantum_espresso.quantum_espresso_workflow import plot_energy_volume_curve"
59-
],
60-
"metadata": {
61-
"trusted": true
62-
},
6355
"outputs": [],
64-
"execution_count": 3
56+
"execution_count": null,
57+
"source": [
58+
"from quantum_espresso_workflow import (\n",
59+
" generate_structures,\n",
60+
" get_bulk_structure,\n",
61+
" calculate_qe as _calculate_qe,\n",
62+
" plot_energy_volume_curve,\n",
63+
")"
64+
]
6565
},
6666
{
67+
"metadata": {},
6768
"cell_type": "code",
68-
"source": "calculate_qe = task(outputs=[\"energy\", \"volume\", \"structure\"])(_calculate_qe)",
69-
"metadata": {
70-
"trusted": true
71-
},
7269
"outputs": [],
73-
"execution_count": 4
70+
"execution_count": null,
71+
"source": "calculate_qe = task(outputs=[\"energy\", \"volume\", \"structure\"])(_calculate_qe)"
7472
},
7573
{
74+
"metadata": {},
7675
"cell_type": "code",
77-
"source": "wg = WorkGraph(\"wg-qe\")",
78-
"metadata": {
79-
"trusted": true
80-
},
8176
"outputs": [],
82-
"execution_count": 5
77+
"execution_count": null,
78+
"source": "wg = WorkGraph(\"wg-qe\")"
8379
},
8480
{
8581
"cell_type": "markdown",

example_workflows/quantum_espresso/jobflow_qe.ipynb

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,29 +65,25 @@
6565
"execution_count": 3
6666
},
6767
{
68+
"metadata": {},
6869
"cell_type": "code",
70+
"outputs": [],
71+
"execution_count": null,
6972
"source": [
70-
"from example_workflows.quantum_espresso.quantum_espresso_workflow import (\n",
73+
"from quantum_espresso_workflow import (\n",
7174
" calculate_qe as _calculate_qe, \n",
7275
" generate_structures as _generate_structures, \n",
7376
" get_bulk_structure as _get_bulk_structure, \n",
7477
" plot_energy_volume_curve as _plot_energy_volume_curve,\n",
7578
")"
76-
],
77-
"metadata": {
78-
"trusted": true
79-
},
80-
"outputs": [],
81-
"execution_count": 4
79+
]
8280
},
8381
{
82+
"metadata": {},
8483
"cell_type": "code",
85-
"source": "workflow_json_filename = \"jobflow_qe.json\"",
86-
"metadata": {
87-
"trusted": true
88-
},
8984
"outputs": [],
90-
"execution_count": 5
85+
"execution_count": null,
86+
"source": "workflow_json_filename = \"jobflow_qe.json\""
9187
},
9288
{
9389
"cell_type": "code",

example_workflows/quantum_espresso/pyiron_base_qe.ipynb

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,27 @@
4444
"execution_count": 1
4545
},
4646
{
47-
"id": "b75c2530-9b89-4185-838f-a17e517fa68f",
47+
"metadata": {},
4848
"cell_type": "code",
49+
"outputs": [],
50+
"execution_count": null,
4951
"source": [
50-
"from example_workflows.quantum_espresso.quantum_espresso_workflow import (\n",
52+
"from quantum_espresso_workflow import (\n",
5153
" calculate_qe as _calculate_qe, \n",
5254
" generate_structures as _generate_structures, \n",
5355
" get_bulk_structure as _get_bulk_structure, \n",
5456
" plot_energy_volume_curve as _plot_energy_volume_curve,\n",
5557
")"
5658
],
57-
"metadata": {
58-
"trusted": true
59-
},
60-
"outputs": [],
61-
"execution_count": 2
59+
"id": "ea65c6275f956bdb"
6260
},
6361
{
64-
"id": "07a950ca",
62+
"metadata": {},
6563
"cell_type": "code",
66-
"source": "workflow_json_filename = \"pyiron_base_qe.json\"",
67-
"metadata": {
68-
"trusted": true
69-
},
7064
"outputs": [],
71-
"execution_count": 3
65+
"execution_count": null,
66+
"source": "workflow_json_filename = \"pyiron_base_qe.json\"",
67+
"id": "686a6a5f54a0cef5"
7268
},
7369
{
7470
"id": "208ddfb8-dfda-4227-aa1f-3dc29e34ea82",

0 commit comments

Comments
 (0)