Skip to content

Commit b954975

Browse files
committed
Propagate 'label' to primary.cwlprov file
1 parent 8ef5150 commit b954975

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cwltool/provenance_profile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,10 @@ def declare_file(self, value: CWLObjectType) -> Tuple[ProvEntity, ProvEntity, st
350350
file_entity.add_attributes({CWLPROV["nameext"]: value["nameext"]})
351351
self.document.specializationOf(file_entity, entity)
352352

353+
# Transfer input data annotations to provenance:
354+
if "label" in value:
355+
file_entity.add_attributes({PROV_LABEL: value["label"]})
356+
353357
# Check for secondaries
354358
for sec in cast(
355359
MutableSequence[CWLObjectType], value.get("secondaryFiles", [])

0 commit comments

Comments
 (0)