Skip to content

Commit b1b6117

Browse files
authored
Adjust index handling in pyiron to be compatible to aiida (#23)
* Update pyiron_base.py * Update pyiron_base.py
1 parent a4aca09 commit b1b6117

File tree

1 file changed

+1
-3
lines changed
  • python_workflow_definition/src/python_workflow_definition

1 file changed

+1
-3
lines changed

python_workflow_definition/src/python_workflow_definition/pyiron_base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ def _get_delayed_object_dict(total_lst, nodes_dict, source_handle_dict, pyiron_p
5858
)
5959
for k, v in input_dict.items()
6060
}
61-
# print(nodes_dict[key], source_handle_dict.get(key, []))
62-
# print(kwargs)
6361
delayed_object_dict[key] = job(
6462
funct=nodes_dict[key],
6563
output_key_lst=source_handle_dict.get(key, []),
@@ -156,7 +154,7 @@ def _get_edges_dict(edges_lst, nodes_dict, connection_dict, lookup_dict):
156154
"target": target,
157155
"targetHandle": target_handle,
158156
"source": connection_dict[output_name],
159-
"sourceHandle": output._list_index, # check for list index
157+
"sourceHandle": f"s_{output._list_index}", # check for list index
160158
})
161159
else:
162160
edges_dict_lst.append({

0 commit comments

Comments
 (0)