Skip to content

Commit 602fa70

Browse files
committed
black formatting
1 parent 9739b47 commit 602fa70

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

python_workflow_definition/src/python_workflow_definition/pyiron_workflow.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ def load_workflow_json(file_name: str) -> Workflow:
222222
if node_dict["type"] == "function":
223223
fnc = import_from_string(node_dict["value"])
224224
n = function_node(
225-
fnc,
226-
output_labels=fnc.__name__ # Strictly force single-output
225+
fnc, output_labels=fnc.__name__ # Strictly force single-output
227226
)
228227
nodes[node_dict["id"]] = n
229228
wf.add_child(n)
@@ -245,9 +244,7 @@ def load_workflow_json(file_name: str) -> Workflow:
245244
injected_attribute_access = nodes[source_id].__getitem__(source_port)
246245
upstream = injected_attribute_access
247246
downstream = nodes[target_id]
248-
setattr(
249-
downstream.inputs, target_port, upstream
250-
) # Exploit input panel magic
247+
setattr(downstream.inputs, target_port, upstream) # Exploit input panel magic
251248
# Warning: edge setup routine is bespoke for an environment where all nodes return
252249
# a single value or a dictionary
253250

0 commit comments

Comments
 (0)