Skip to content

Commit

Permalink
Ignore COMMENT cards when writing out FITS header
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Feb 19, 2016
1 parent fc2a02c commit 2b1ecee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stginga/plugins/SaveImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ def _write_header(self, image, hdu):
ghdr = image.metadata['header']

for key in ghdr:
# Need this to avoid duplication because COMMENT is a weird field
if key.upper() == 'COMMENT':
continue

bnch = ghdr.get_card(key)

# Insert new keyword
Expand Down

0 comments on commit 2b1ecee

Please sign in to comment.