Skip to content

Commit 5e17bab

Browse files
committed
rename python modules
1 parent 780fe63 commit 5e17bab

File tree

16 files changed

+29
-29
lines changed

16 files changed

+29
-29
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ These two Python functions are combined in the following example workflow:
2727
tmp_dict = get_prod_and_div(x=1, y=2)
2828
result = get_sum(x=tmp_dict["prod"], y=tmp_dict["div"])
2929
```
30-
For the workflow representation of these Python functions the Python functions are stored in the [arithmetic_workflow.py](example_workflows/arithmetic/arithmetic_workflow.py)
30+
For the workflow representation of these Python functions the Python functions are stored in the [arithmetic_workflow.py](example_workflows/arithmetic/workflow.py)
3131
Python module. The connection of the Python functions are stored in the [workflow_arithmetic.json](example_workflows/arithmetic/workflow.json)
3232
JSON file:
3333
```
@@ -67,7 +67,7 @@ The corresponding Jupyter notebooks demonstrate this functionality:
6767
### Quantum Espresso Workflow
6868
The second workflow example is the calculation of an energy volume curve with Quantum Espresso. In the first step the
6969
initial structure is relaxed, afterward it is strained and the total energy is calculated.
70-
* [quantum_espresso_workflow.py](example_workflows/quantum_espresso/quantum_espresso_workflow.py) Python functions
70+
* [quantum_espresso_workflow.py](example_workflows/quantum_espresso/workflow.py) Python functions
7171
* [workflow_qe.json](example_workflows/quantum_espresso/workflow.json) Workflow definition in the Python Workflow Definition.
7272
* [environment_qe.yml](example_workflows/quantum_espresso/environment.yml) Conda environment
7373

@@ -81,7 +81,7 @@ initial structure is relaxed, afterward it is strained and the total energy is c
8181
### NFDI4Ing Scientific Workflow Requirements
8282
To demonstrate the compatibility of the Python Workflow Definition to file based workflows, the workflow benchmark developed as part of [NFDI4Ing](https://github.com/BAMresearch/NFDI4IngScientificWorkflowRequirements)
8383
is implemented for all three simulation codes based on a shared workflow definition.
84-
* [nfdi_ing_workflow.py](example_workflows/nfdi/nfdi_ing_workflow.py) Python functions
84+
* [nfdi_ing_workflow.py](example_workflows/nfdi/workflow.py) Python functions
8585
* [workflow_nfdi.json](example_workflows/nfdi/workflow.json) Workflow definition in the Python Workflow Definition.
8686

8787
Additional source files provided with the workflow benchmark:

example_workflows/arithmetic/aiida.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"outputs": [],
4747
"execution_count": null,
4848
"source": [
49-
"from arithmetic_workflow import (\n",
49+
"from workflow import (\n",
5050
" get_sum as _get_sum,\n",
5151
" get_prod_and_div as _get_prod_and_div,\n",
5252
")"

example_workflows/arithmetic/jobflow.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"outputs": [],
6666
"execution_count": null,
6767
"source": [
68-
"from arithmetic_workflow import (\n",
68+
"from workflow import (\n",
6969
" get_sum as _get_sum,\n",
7070
" get_prod_and_div as _get_prod_and_div,\n",
7171
")"

example_workflows/arithmetic/pyiron_base.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"outputs": [],
6060
"execution_count": null,
6161
"source": [
62-
"from arithmetic_workflow import (\n",
62+
"from workflow import (\n",
6363
" get_sum as _get_sum,\n",
6464
" get_prod_and_div as _get_prod_and_div,\n",
6565
")"

example_workflows/arithmetic/workflow.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"nodes": [
3-
{"id": 0, "function": "arithmetic_workflow.get_prod_and_div"},
4-
{"id": 1, "function": "arithmetic_workflow.get_sum"},
3+
{"id": 0, "function": "workflow.get_prod_and_div"},
4+
{"id": 1, "function": "workflow.get_sum"},
55
{"id": 2, "value": 1},
66
{"id": 3, "value": 2}
77
],
File renamed without changes.

example_workflows/nfdi/aiida.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"outputs": [],
5959
"execution_count": null,
6060
"source": [
61-
"from nfdi_ing_workflow import (\n",
61+
"from workflow import (\n",
6262
" generate_mesh,\n",
6363
" convert_to_xdmf as _convert_to_xdmf,\n",
6464
" poisson as _poisson,\n",

example_workflows/nfdi/jobflow.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"outputs": [],
6262
"execution_count": null,
6363
"source": [
64-
"from nfdi_ing_workflow import (\n",
64+
"from workflow import (\n",
6565
" generate_mesh as _generate_mesh, \n",
6666
" convert_to_xdmf as _convert_to_xdmf,\n",
6767
" poisson as _poisson,\n",

example_workflows/nfdi/pyiron_base.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"outputs": [],
4040
"execution_count": null,
4141
"source": [
42-
"from nfdi_ing_workflow import (\n",
42+
"from workflow import (\n",
4343
" generate_mesh as _generate_mesh, \n",
4444
" convert_to_xdmf as _convert_to_xdmf,\n",
4545
" poisson as _poisson,\n",

example_workflows/nfdi/workflow.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"nodes": [
3-
{"id": 0, "function": "nfdi_ing_workflow.generate_mesh"},
4-
{"id": 1, "function": "nfdi_ing_workflow.convert_to_xdmf"},
5-
{"id": 2, "function": "nfdi_ing_workflow.poisson"},
6-
{"id": 3, "function": "nfdi_ing_workflow.plot_over_line"},
7-
{"id": 4, "function": "nfdi_ing_workflow.substitute_macros"},
8-
{"id": 5, "function": "nfdi_ing_workflow.compile_paper"},
3+
{"id": 0, "function": "workflow.generate_mesh"},
4+
{"id": 1, "function": "workflow.convert_to_xdmf"},
5+
{"id": 2, "function": "workflow.poisson"},
6+
{"id": 3, "function": "workflow.plot_over_line"},
7+
{"id": 4, "function": "workflow.substitute_macros"},
8+
{"id": 5, "function": "workflow.compile_paper"},
99
{"id": 6, "value": 2.0}
1010
],
1111
"edges": [

0 commit comments

Comments
 (0)