Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions example_workflows/arithmetic/cwl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand All @@ -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
},
Expand Down
4 changes: 2 additions & 2 deletions example_workflows/nfdi/cwl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down Expand Up @@ -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
},
Expand Down
4 changes: 2 additions & 2 deletions example_workflows/quantum_espresso/cwl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand All @@ -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
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Loading