Skip to content

Commit

Permalink
Fixed output port name reference and added additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
awicenec committed Jun 23, 2022
1 parent 53490ab commit 89ea802
Show file tree
Hide file tree
Showing 4 changed files with 548 additions and 8 deletions.
2 changes: 1 addition & 1 deletion daliuge-engine/dlg/apps/pyfunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def optionalEval(x):

outputs = collections.OrderedDict()
for uid, drop in self._outputs.items():
outputs[uid] = all_contents(drop)
outputs[uid] = all_contents(drop) if self.output_parser is DropParser.PATH else None


self.funcargs = {}
Expand Down
8 changes: 4 additions & 4 deletions daliuge-engine/dlg/graph_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ def removeUnmetRelationships(dropSpecList):
# Find missing OIDs in this relationship and keep track of them,
# removing them from the current DROP spec
ds = dropSpec[rel]
# if isinstance(ds[0], dict):
# ds = [next(iter(d)) for d in ds]
ds = [normalise_oid(d) for d in ds]
missingOids = [oid for oid in normalise_oid(ds) if oid not in oids]
if isinstance(ds[0], dict):
ds = [next(iter(d)) for d in ds]
# ds = [normalise_oid(d) for d in ds]
missingOids = [oid for oid in ds if oid not in oids]
for oid in missingOids:
unmetRelationships.append(DROPRel(oid, link, this_oid))
ds.remove(oid)
Expand Down

0 comments on commit 89ea802

Please sign in to comment.