diff --git a/example_workflows/arithmetic/cwl.ipynb b/example_workflows/arithmetic/cwl.ipynb index ba406e5..b83e6a0 100644 --- a/example_workflows/arithmetic/cwl.ipynb +++ b/example_workflows/arithmetic/cwl.ipynb @@ -34,7 +34,7 @@ { "id": "92e3921b-2bb8-4333-8cfe-4bd27f785d24", "cell_type": "code", - "source": "from python_workflow_definition.cwl import load_workflow_json", + "source": "from python_workflow_definition.cwl import write_workflow", "metadata": { "trusted": true }, @@ -44,7 +44,7 @@ { "id": "5303c059-8ae4-4557-858e-b4bd64eac711", "cell_type": "code", - "source": "load_workflow_json(file_name=\"workflow.json\")", + "source": "write_workflow(file_name=\"workflow.json\")", "metadata": { "trusted": true }, diff --git a/example_workflows/nfdi/cwl.ipynb b/example_workflows/nfdi/cwl.ipynb index 40dde74..0906490 100644 --- a/example_workflows/nfdi/cwl.ipynb +++ b/example_workflows/nfdi/cwl.ipynb @@ -54,7 +54,7 @@ { "id": "92e3921b-2bb8-4333-8cfe-4bd27f785d24", "cell_type": "code", - "source": "from python_workflow_definition.cwl import load_workflow_json", + "source": "from python_workflow_definition.cwl import write_workflow", "metadata": { "trusted": true }, @@ -106,7 +106,7 @@ { "id": "5303c059-8ae4-4557-858e-b4bd64eac711", "cell_type": "code", - "source": "load_workflow_json(file_name=\"workflow.json\")", + "source": "write_workflow(file_name=\"workflow.json\")", "metadata": { "trusted": true }, diff --git a/example_workflows/quantum_espresso/cwl.ipynb b/example_workflows/quantum_espresso/cwl.ipynb index 794600d..5dae00c 100644 --- a/example_workflows/quantum_espresso/cwl.ipynb +++ b/example_workflows/quantum_espresso/cwl.ipynb @@ -44,7 +44,7 @@ { "id": "92e3921b-2bb8-4333-8cfe-4bd27f785d24", "cell_type": "code", - "source": "from python_workflow_definition.cwl import load_workflow_json", + "source": "from python_workflow_definition.cwl import write_workflow", "metadata": { "trusted": true }, @@ -54,7 +54,7 @@ { "id": "5303c059-8ae4-4557-858e-b4bd64eac711", "cell_type": "code", - "source": "load_workflow_json(file_name=\"workflow.json\")", + "source": "write_workflow(file_name=\"workflow.json\")", "metadata": { "trusted": true }, diff --git a/python_workflow_definition/src/python_workflow_definition/cwl/__init__.py b/python_workflow_definition/src/python_workflow_definition/cwl/__init__.py index ee87a7c..eafa1af 100644 --- a/python_workflow_definition/src/python_workflow_definition/cwl/__init__.py +++ b/python_workflow_definition/src/python_workflow_definition/cwl/__init__.py @@ -231,7 +231,7 @@ def _write_workflow(workflow): dump(workflow_template, f, Dumper=Dumper) -def load_workflow_json(file_name: str): +def write_workflow(file_name: str): with open(file_name, "r") as f: workflow = json.load(f)