Skip to content

Commit 87b0c27

Browse files
committed
rename function parameter
1 parent 76dced1 commit 87b0c27

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python_workflow_definition/src/python_workflow_definition/aiida.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,6 @@ def write_workflow_json(wg: WorkGraph, file_name: str) -> dict:
137137
)
138138
with open(file_name, "w") as f:
139139
# json.dump({"nodes": data[], "edges": edges_new_lst}, f)
140-
json.dump(update_node_names(content=data), f, indent=2)
140+
json.dump(update_node_names(workflow_dict=data), f, indent=2)
141141

142142
return data

python_workflow_definition/src/python_workflow_definition/jobflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def write_workflow_json(flow: Flow, file_name: str = "workflow.json"):
334334
with open(file_name, "w") as f:
335335
json.dump(
336336
update_node_names(
337-
content={NODES_LABEL: nodes_store_lst, EDGES_LABEL: edges_lst}
337+
workflow_dict={NODES_LABEL: nodes_store_lst, EDGES_LABEL: edges_lst}
338338
),
339339
f,
340340
indent=2,

python_workflow_definition/src/python_workflow_definition/pyiron_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def write_workflow_json(
295295
with open(file_name, "w") as f:
296296
json.dump(
297297
update_node_names(
298-
content={NODES_LABEL: nodes_store_lst, EDGES_LABEL: edges_new_lst}
298+
workflow_dict={NODES_LABEL: nodes_store_lst, EDGES_LABEL: edges_new_lst}
299299
),
300300
f,
301301
indent=2,

0 commit comments

Comments
 (0)