From 70d184fd4e465ed15e35ae2f5309edd27e6e273b Mon Sep 17 00:00:00 2001 From: RenskeW <64646852+RenskeW@users.noreply.github.com> Date: Tue, 5 Jul 2022 10:16:17 +0200 Subject: [PATCH] Transferred annotations from data: to id: entity --- cwltool/provenance_profile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cwltool/provenance_profile.py b/cwltool/provenance_profile.py index 70edb182d..e27dcbc86 100644 --- a/cwltool/provenance_profile.py +++ b/cwltool/provenance_profile.py @@ -391,13 +391,13 @@ def declare_file(self, value: CWLObjectType) -> Tuple[ProvEntity, ProvEntity, st for s in schema_annotations: if "additionalType" in s: additional_type = schema_annotations[s].split(sep='/')[-1] # find better method? - entity.add_attributes( {PROV_TYPE: SCHEMA[additional_type]}) - else: # add support for CommentedSeq - entity = self._add_nested_annotations(s, schema_annotations[s], entity) + file_entity.add_attributes( {PROV_TYPE: SCHEMA[additional_type]}) + else: + file_entity = self._add_nested_annotations(s, schema_annotations[s], file_entity) # Transfer format annotations to provenance: if "format" in value: - entity.add_attributes({SCHEMA["encodingFormat"]: value["format"]}) + file_entity.add_attributes({SCHEMA["encodingFormat"]: value["format"]}) # Check for secondaries for sec in cast(