Skip to content

Commit

Permalink
Transferred annotations from data: to id: entity
Browse files Browse the repository at this point in the history
  • Loading branch information
RenskeW committed Jul 5, 2022
1 parent 1598959 commit 70d184f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cwltool/provenance_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 70d184f

Please sign in to comment.