Skip to content

Commit 09844b3

Browse files
authored
Update pyiron_base.py
1 parent a5faaaa commit 09844b3

File tree

1 file changed

+2
-2
lines changed
  • python_workflow_definition/src/python_workflow_definition

1 file changed

+2
-2
lines changed

python_workflow_definition/src/python_workflow_definition/pyiron_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def _get_edges_dict(edges_lst, nodes_dict, connection_dict, lookup_dict):
154154
"target": target,
155155
"targetHandle": target_handle,
156156
"source": connection_dict[output_name],
157-
"sourceHandle": output._list_index, # check for list index
157+
"sourceHandle": f"s_{output._list_index}", # check for list index
158158
})
159159
else:
160160
edges_dict_lst.append({
@@ -221,6 +221,6 @@ def write_workflow_json(delayed_object, file_name="workflow.json"):
221221
nodes_store_dict[k] = v.tolist()
222222
else:
223223
nodes_store_dict[k] = v
224-
224+
225225
with open(file_name, "w") as f:
226226
json.dump({"nodes": nodes_store_dict, "edges": edges_new_lst}, f)

0 commit comments

Comments
 (0)