Skip to content

Commit a9e68b3

Browse files
cwl.load_workflow_json -> cwl.pwd_to_cwl (#104)
* `cwl.load_workflow_json` -> `cwl.pwd_to_cwl` * Rename to write_workflow --------- Co-authored-by: Julian Geiger <julian.geiger@psi.ch>
1 parent 3af91a5 commit a9e68b3

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

example_workflows/arithmetic/cwl.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"id": "92e3921b-2bb8-4333-8cfe-4bd27f785d24",
3636
"cell_type": "code",
37-
"source": "from python_workflow_definition.cwl import load_workflow_json",
37+
"source": "from python_workflow_definition.cwl import write_workflow",
3838
"metadata": {
3939
"trusted": true
4040
},
@@ -44,7 +44,7 @@
4444
{
4545
"id": "5303c059-8ae4-4557-858e-b4bd64eac711",
4646
"cell_type": "code",
47-
"source": "load_workflow_json(file_name=\"workflow.json\")",
47+
"source": "write_workflow(file_name=\"workflow.json\")",
4848
"metadata": {
4949
"trusted": true
5050
},

example_workflows/nfdi/cwl.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
{
5555
"id": "92e3921b-2bb8-4333-8cfe-4bd27f785d24",
5656
"cell_type": "code",
57-
"source": "from python_workflow_definition.cwl import load_workflow_json",
57+
"source": "from python_workflow_definition.cwl import write_workflow",
5858
"metadata": {
5959
"trusted": true
6060
},
@@ -106,7 +106,7 @@
106106
{
107107
"id": "5303c059-8ae4-4557-858e-b4bd64eac711",
108108
"cell_type": "code",
109-
"source": "load_workflow_json(file_name=\"workflow.json\")",
109+
"source": "write_workflow(file_name=\"workflow.json\")",
110110
"metadata": {
111111
"trusted": true
112112
},

example_workflows/quantum_espresso/cwl.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{
4545
"id": "92e3921b-2bb8-4333-8cfe-4bd27f785d24",
4646
"cell_type": "code",
47-
"source": "from python_workflow_definition.cwl import load_workflow_json",
47+
"source": "from python_workflow_definition.cwl import write_workflow",
4848
"metadata": {
4949
"trusted": true
5050
},
@@ -54,7 +54,7 @@
5454
{
5555
"id": "5303c059-8ae4-4557-858e-b4bd64eac711",
5656
"cell_type": "code",
57-
"source": "load_workflow_json(file_name=\"workflow.json\")",
57+
"source": "write_workflow(file_name=\"workflow.json\")",
5858
"metadata": {
5959
"trusted": true
6060
},

python_workflow_definition/src/python_workflow_definition/cwl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def _write_workflow(workflow):
231231
dump(workflow_template, f, Dumper=Dumper)
232232

233233

234-
def load_workflow_json(file_name: str):
234+
def write_workflow(file_name: str):
235235
with open(file_name, "r") as f:
236236
workflow = json.load(f)
237237

0 commit comments

Comments
 (0)