def load_hdu(self, hdu, fobj=None, naxispath=None):
        self.clear_metadata()

        ahdr = self.get_header()

        loader = io_fits.PyFitsFileHandler(self.logger)
        _data, naxispath = loader.load_hdu(hdu, ahdr, naxispath=naxispath)
        # this is a handle to the full data array
        self._md_data = _data

        if naxispath is None:
            naxispath = []

        # Drill down to 2D data slice
        if len(naxispath) == 0:
            naxispath = ([0] * (2-len(_data.shape)))

        self.set_naxispath(naxispath)

        # Set PRIMARY header
        if self.inherit_primary_header and fobj is not None:
            self.io.fromHDU(fobj[0], self._primary_hdr)

        # Try to make a wcs object on the header
        self.wcs.load_header(hdu.header, fobj=fobj)
dataset/ETHPy150Open ejeschke/ginga/ginga/AstroImage.py/AstroImage.load_hdu/swapped operands of `-`