Skip to content

Commit 21dcb93

Browse files
authored
Bug fix for pyiron_base interface (#36)
1 parent 0dd8d02 commit 21dcb93

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

python_workflow_definition/src/python_workflow_definition/pyiron_base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ def _group_edges(edges_lst):
3939

4040

4141
def _get_source(nodes_dict, delayed_object_dict, source, sourceHandle):
42-
if source in delayed_object_dict.keys():
42+
if source in delayed_object_dict.keys() and sourceHandle is not None:
4343
return delayed_object_dict[source].__getattr__("output").__getattr__(sourceHandle)
44+
elif source in delayed_object_dict.keys():
45+
return delayed_object_dict[source]
4446
else:
4547
return nodes_dict[source]
4648

47-
4849
def _get_delayed_object_dict(total_lst, nodes_dict, source_handle_dict, pyiron_project):
4950
delayed_object_dict = {}
5051
for item in total_lst:

0 commit comments

Comments
 (0)