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

Fix Source.info to correctly print header comments

parent 14b1b6c4
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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))