Skip to content

Commit 23bec28

Browse files
authored
Update pyiron_base.py
1 parent a4aca09 commit 23bec28

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
@@ -72,7 +72,7 @@ def get_dict(**kwargs):
7272

7373

7474
def get_list(**kwargs):
75-
return list(kwargs["kwargs"].values())
75+
return {f"s_{i}": v for i, v in enumerate(kwargs["kwargs"].values())}
7676

7777

7878
def _remove_server_obj(nodes_dict, edges_lst):
@@ -156,7 +156,7 @@ def _get_edges_dict(edges_lst, nodes_dict, connection_dict, lookup_dict):
156156
"target": target,
157157
"targetHandle": target_handle,
158158
"source": connection_dict[output_name],
159-
"sourceHandle": output._list_index, # check for list index
159+
"sourceHandle": f"s_{output._list_index}", # check for list index
160160
})
161161
else:
162162
edges_dict_lst.append({

0 commit comments

Comments
 (0)