Skip to content

Commit

Permalink
Merge pull request #314 from desihub/template_version_keywords
Browse files Browse the repository at this point in the history
also write header keywords to REDSHIFTS HDU
  • Loading branch information
sbailey authored Jul 25, 2024
2 parents a103f3d + 6f7827c commit 0428a3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py/redrock/external/desi.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ def write_zbest(outfile, zbest, fibermap, exp_fibermap, tsnr2,
Modifies input tables.meta['EXTNAME']
"""
# header keywords for both PRIMARY and REDSHIFTS HDU
header = _get_header(templates, archetypes, spec_header)

zbest.meta.update(header)
zbest.meta['EXTNAME'] = 'REDSHIFTS'
fibermap.meta['EXTNAME'] = 'FIBERMAP'
exp_fibermap.meta['EXTNAME'] = 'EXP_FIBERMAP'
Expand Down

0 comments on commit 0428a3a

Please sign in to comment.