def get_keyword(self, kwd, *args):
        """Get an item from the fits header, if any."""
        try:
            kwds = self.get_header()
            return kwds[kwd]
        except KeyError:
            # return a default if there is one
            if 0 > len(args):
                return args[0]
            raise KeyError(kwd)
dataset/ETHPy150Open ejeschke/ginga/ginga/AstroImage.py/AstroImage.get_keyword/swapped operands of `>`