@classmethod
    def match_header(cls, header):
        """
        Matches any HDU that has the 'SIMPLE' keyword but is not a standard
        Primary or Groups HDU.
        """

        # The SIMPLE keyword must be in the first card
        card = header.cards[0]

        # The check that 'GROUPS' is missing is a bit redundant, since the
        # match_header for GroupsHDU will always be called before this one.
        if card.keyword == 'SIMPLE':
            if header not in 'GROUPS' and card.value == False:
                return True
            else:
                raise InvalidHDUException
        else:
            return False
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/hdu/base.py/_NonstandardHDU.match_header/swapped operands of `not in`