File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
python_workflow_definition/src/python_workflow_definition Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments