def flip_flip(self, point):
        """
        Sometimes we 'flipped' the X/Y coordinates of the image during processing.  This function takes an
        (x,y) location from the processing pipeline and returns the x/y location relative to the original
        reference frame.   (Correctly checks if the coordinate is flipped to begin with.)

        This is only for use on the original X/Y coordinates as provided by an input reading.

        @param point: an x/y location on the image.
        @type point: [x, y]
        @return:  the x/y location on the un-fliped frame
        """
        x, y = point
        if self.reading.compute_inverted():
            naxis1 = self.reading.obs.header.get(self.reading.obs.HEADER_IMG_SIZE_X,
                                                 self.reading.obs.header.get('NAXIS1', 256))
            naxis2 = self.reading.obs.header.get(self.reading.obs.HEADER_IMG_SIZE_Y,
                                                 self.reading.obs.header.get('NAXIS2', 256))
            logger.debug("Got that image has size {}, {}".format(naxis1, naxis2))

            x1 = x
            y1 = y
            x = int(naxis1) - x + 1
            y = int(naxis2) - y + 1
            logger.debug("Inverted source location from {},{} to {},{}".format(x1, y1, x, y))

        return x, y
def flip_flip ( self , point ) : x , y = point if self . reading . compute_inverted ( ) : naxis1 = self . reading . obs . header . get ( self . reading . obs . HEADER_IMG_SIZE_X , self . reading . obs . header . get ( 'NAXIS1' , 256 ) ) naxis2 = self . reading . obs . header . get ( self . reading . obs . HEADER_IMG_SIZE_Y , self . reading . obs . header . get ( 'NAXIS2' , 256 ) ) logger . debug ( "Got that image has size {}, {}" . format ( naxis1 , naxis2 ) ) x1 = x y1 = y x = int ( naxis1 ) - x + 1 y = int ( naxis2 ) - y + 1 logger . debug ( "Inverted source location from {},{} to {},{}" . format ( x1 , y1 , x , y ) ) return x , y
Sometimes we 'flipped' the X/Y coordinates of the image during processing.  This function takes an
        (x,y) location from the processing pipeline and returns the x/y location relative to the original
        reference frame.   (Correctly checks if the coordinate is flipped to begin with.)

        This is only for use on the original X/Y coordinates as provided by an input reading.

        @param point: an x/y location on the image.
        @type point: [x, y]
        @return:  the x/y location on the un-fliped frame