Skip to content

Commit

Permalink
fix header keywords for fits export
Browse files Browse the repository at this point in the history
  • Loading branch information
hamogu committed Jun 11, 2020
1 parent d1af1dd commit 3cc7784
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions arcus/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ def __init__(self, **kwargs):
def __call__(self, photons, *args, **kwargs):
photons.meta['ARCUSVER'] = (version.version, 'ARCUS code version')
photons.meta['ARCUSGIT'] = (version.githash, 'Git hash of ARCUS code')
photons.meta['ARCUSTIM'] = (version.timestamp, 'Commit time')
photons.meta['ARCDATHA'] = (get_git_hash()[:10], 'Git hash of simulation input data')
photons.meta['ARCUSTIM'] = (str(version.timestamp), 'Commit time')
photons.meta['ARCDATHA'] = (get_git_hash().decode()[:10],
'Git hash of simulation input data')
photons.meta['ARCDATGI'] = (string_git_info()[:20], '')
photons.meta['ORIGIN'] = (self.origin, 'Institution where file was created')
photons.meta['CREATOR'] = (self.creator, 'Person or program creating the file')
photons.meta['ORIGIN'] = (self.origin,
'Institution where file was created')
photons.meta['CREATOR'] = (self.creator,
'Person or program creating the file')
photons.meta['DATE'] = datetime.now().isoformat()[:10]
photons.meta['SATELLIT'] = 'ARCUS'

Expand Down

0 comments on commit 3cc7784

Please sign in to comment.