Commit 6a6166f1 authored by Simon Conseil's avatar Simon Conseil

Fix Source.info to correctly print header comments

parent 14b1b6c4
Pipeline #3119 passed with stage
in 15 minutes and 6 seconds
......@@ -790,9 +790,9 @@ class Source:
excluded_cards = {'SIMPLE', 'BITPIX', 'NAXIS', 'EXTEND', 'DATE',
'AUTHOR'}
for key in self.header.keys():
if key not in excluded_cards:
info(self.header.cards[key])
for card in self.header.cards:
if card.keyword not in excluded_cards:
info(card)
for attr in (self.spectra, self.images, self.cubes, self.tables):
info(repr(attr))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment