We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ProvenanceLogger
1 parent 4dcd877 commit 3208f5fCopy full SHA for 3208f5f
esmvalcore/_task.py
@@ -726,7 +726,8 @@ def _collect_provenance(self) -> None:
726
valid = True
727
for filename, orig_attributes in table.items():
728
# copy to avoid updating other entries if file contains anchors
729
- attributes = deepcopy(orig_attributes)
+ attributes = deepcopy(attrs)
730
+ attributes.update(deepcopy(orig_attributes))
731
ancestor_files = attributes.pop("ancestors", [])
732
if not ancestor_files:
733
logger.warning(
@@ -764,8 +765,6 @@ def _collect_provenance(self) -> None:
764
765
self.name,
766
)
767
- attributes.update(deepcopy(attrs))
768
-
769
TAGS.replace_tags_in_dict(attributes)
770
771
product = TrackedFile(Path(filename), attributes, ancestors)
0 commit comments