Skip to content

Commit 0fd2a9a

Browse files
committed
black formatting
1 parent 264b43d commit 0fd2a9a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python_workflow_definition/src/python_workflow_definition/pyiron_workflow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ def load_workflow_json(file_name: str) -> Workflow:
218218
{}
219219
) # Type is actually more restrictive, must be jsonifyable object
220220
nodes: dict[int, Function] = {}
221-
total_counter_dict = Counter([n["value"] for n in content[NODES_LABEL] if n["type"] == "function"])
221+
total_counter_dict = Counter(
222+
[n["value"] for n in content[NODES_LABEL] if n["type"] == "function"]
223+
)
222224
counter_dict = {k: -1 for k in total_counter_dict.keys()}
223225
wf = Workflow(file_name.split(".")[0])
224226
for node_dict in content[NODES_LABEL]:
@@ -229,9 +231,7 @@ def load_workflow_json(file_name: str) -> Workflow:
229231
name = fnc.__name__ + "_" + str(counter_dict[node_dict["value"]])
230232
else:
231233
name = fnc.__name__
232-
n = function_node(
233-
fnc, output_labels=name # Strictly force single-output
234-
)
234+
n = function_node(fnc, output_labels=name) # Strictly force single-output
235235
nodes[node_dict["id"]] = n
236236
wf.add_child(n)
237237
elif node_dict["type"] == "input":

0 commit comments

Comments
 (0)