Skip to content

Commit 70d184f

Browse files
committed
Transferred annotations from data: to id: entity
1 parent 1598959 commit 70d184f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cwltool/provenance_profile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,13 +391,13 @@ def declare_file(self, value: CWLObjectType) -> Tuple[ProvEntity, ProvEntity, st
391391
for s in schema_annotations:
392392
if "additionalType" in s:
393393
additional_type = schema_annotations[s].split(sep='/')[-1] # find better method?
394-
entity.add_attributes( {PROV_TYPE: SCHEMA[additional_type]})
395-
else: # add support for CommentedSeq
396-
entity = self._add_nested_annotations(s, schema_annotations[s], entity)
394+
file_entity.add_attributes( {PROV_TYPE: SCHEMA[additional_type]})
395+
else:
396+
file_entity = self._add_nested_annotations(s, schema_annotations[s], file_entity)
397397

398398
# Transfer format annotations to provenance:
399399
if "format" in value:
400-
entity.add_attributes({SCHEMA["encodingFormat"]: value["format"]})
400+
file_entity.add_attributes({SCHEMA["encodingFormat"]: value["format"]})
401401

402402
# Check for secondaries
403403
for sec in cast(

0 commit comments

Comments
 (0)