Skip to content

Commit 71c6c39

Browse files
committed
fix black
1 parent 33c1e9d commit 71c6c39

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

python_workflow_definition/src/python_workflow_definition/aiida.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ def write_workflow_json(wg: WorkGraph, file_name: str) -> dict:
138138
)
139139
with open(file_name, "w") as f:
140140
# json.dump({"nodes": data[], "edges": edges_new_lst}, f)
141-
json.dump(set_result_node(workflow_dict=update_node_names(workflow_dict=data)), f, indent=2)
141+
json.dump(
142+
set_result_node(workflow_dict=update_node_names(workflow_dict=data)),
143+
f,
144+
indent=2,
145+
)
142146

143147
return data

python_workflow_definition/src/python_workflow_definition/jobflow.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,11 @@ def write_workflow_json(flow: Flow, file_name: str = "workflow.json"):
334334

335335
with open(file_name, "w") as f:
336336
json.dump(
337-
set_result_node(workflow_dict=update_node_names(
338-
workflow_dict={NODES_LABEL: nodes_store_lst, EDGES_LABEL: edges_lst}
339-
)),
337+
set_result_node(
338+
workflow_dict=update_node_names(
339+
workflow_dict={NODES_LABEL: nodes_store_lst, EDGES_LABEL: edges_lst}
340+
)
341+
),
340342
f,
341343
indent=2,
342344
)

python_workflow_definition/src/python_workflow_definition/pyiron_base.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,14 @@ def write_workflow_json(
295295

296296
with open(file_name, "w") as f:
297297
json.dump(
298-
set_result_node(workflow_dict=update_node_names(
299-
workflow_dict={NODES_LABEL: nodes_store_lst, EDGES_LABEL: edges_new_lst}
300-
)),
298+
set_result_node(
299+
workflow_dict=update_node_names(
300+
workflow_dict={
301+
NODES_LABEL: nodes_store_lst,
302+
EDGES_LABEL: edges_new_lst,
303+
}
304+
)
305+
),
301306
f,
302307
indent=2,
303308
)

0 commit comments

Comments
 (0)