Skip to content

Commit d2842a3

Browse files
committed
black formatting
1 parent 482e335 commit d2842a3

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

python_workflow_definition/src/python_workflow_definition/aiida.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ def write_workflow_json(wg: WorkGraph, file_name: str) -> dict:
135135
SOURCE_PORT_LABEL: None,
136136
}
137137
)
138-
PythonWorkflowDefinitionWorkflow(**set_result_node(
139-
workflow_dict=update_node_names(
140-
workflow_dict=data
141-
)
142-
)).dump_json_file(file_name=file_name, indent=2)
138+
PythonWorkflowDefinitionWorkflow(
139+
**set_result_node(workflow_dict=update_node_names(workflow_dict=data))
140+
).dump_json_file(file_name=file_name, indent=2)

python_workflow_definition/src/python_workflow_definition/jobflow.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,13 @@ def write_workflow_json(flow: Flow, file_name: str = "workflow.json"):
331331
else:
332332
nodes_store_lst.append({"id": k, "type": "input", "value": v})
333333

334-
PythonWorkflowDefinitionWorkflow(**set_result_node(
335-
workflow_dict=update_node_names(
336-
workflow_dict={
337-
NODES_LABEL: nodes_store_lst,
338-
EDGES_LABEL: edges_lst,
339-
}
334+
PythonWorkflowDefinitionWorkflow(
335+
**set_result_node(
336+
workflow_dict=update_node_names(
337+
workflow_dict={
338+
NODES_LABEL: nodes_store_lst,
339+
EDGES_LABEL: edges_lst,
340+
}
341+
)
340342
)
341-
)).dump_json_file(file_name=file_name, indent=2)
343+
).dump_json_file(file_name=file_name, indent=2)

python_workflow_definition/src/python_workflow_definition/pyiron_base.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,13 @@ def write_workflow_json(
292292
else:
293293
nodes_store_lst.append({"id": k, "type": "input", "value": v})
294294

295-
PythonWorkflowDefinitionWorkflow(**set_result_node(
296-
workflow_dict=update_node_names(
297-
workflow_dict={
298-
NODES_LABEL: nodes_store_lst,
299-
EDGES_LABEL: edges_new_lst,
300-
}
301-
)
302-
)).dump_json_file(file_name=file_name, indent=2)
295+
PythonWorkflowDefinitionWorkflow(
296+
**set_result_node(
297+
workflow_dict=update_node_names(
298+
workflow_dict={
299+
NODES_LABEL: nodes_store_lst,
300+
EDGES_LABEL: edges_new_lst,
301+
}
302+
)
303+
)
304+
).dump_json_file(file_name=file_name, indent=2)

0 commit comments

Comments
 (0)