@classmethod
    def match_header(cls, header):
        keyword = header.cards[0].keyword
        return (keyword == 'SIMPLE' and 'GROUPS' in header and
                header['GROUPS'] == True)
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/hdu/groups.py/GroupsHDU.match_header/original