Skip to content

Commit

Permalink
Write additional provenance if available
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Jan 30, 2025
1 parent a6640a6 commit 7b1c036
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/lsst/obs/base/formatters/fitsExposure.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ def add_provenance_to_fits_header(
extras.set(f"{input_key} RUN", input.run)
extras.set(f"{input_key} DATASETTYPE", input.datasetType.name)

if input.id in provenance.extras:
for k, v in provenance.extras[input.id].items():
extras.set(f"{input_key} {k.upper()}", v)

# Purge old headers from metadata (important for data ID and input headers
# and to prevent headers accumulating in a PropertyList).
for k in hdr:
Expand Down

0 comments on commit 7b1c036

Please sign in to comment.