Skip to content

Commit

Permalink
add pynrc version to FITS headers
Browse files Browse the repository at this point in the history
  • Loading branch information
JarronL committed Dec 15, 2019
1 parent a5e5200 commit b4744da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pynrc/nrc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,8 @@ def psf_coeff(filter_or_bp, pupil=None, mask=None, module='A',
"""

from .version import __version__

grism_obs = (pupil is not None) and ('GRISM' in pupil)
dhs_obs = (pupil is not None) and ('DHS' in pupil)
coron_obs = (pupil is not None) and ('LYOT' in pupil)
Expand Down Expand Up @@ -1498,6 +1500,7 @@ def psf_coeff(filter_or_bp, pupil=None, mask=None, module='A',
hdr['FORCE'] = (force, "Forced calculations?")
hdr['SAVE'] = (save, "Save file?")
hdr['FILENAME'] = (os.path.basename(save_name), "File save name")
hdr['PYNRCVER'] = (__version__, "pyNRC version")

hdr.insert('DATAVERS', '', after=True)
hdr.insert('DATAVERS', ('','psf_coeff() Keyword Values'), after=True)
Expand Down

0 comments on commit b4744da

Please sign in to comment.