def __WCS_unpickle__(cls, dct, fits_data):
 self = cls.__new__(cls)
 self.__dict__.update(dct)
 buffer = io.BytesIO(fits_data)
 hdulist = fits.open(buffer)
 WCS.__init__(self, hdulist[0].header, hdulist)
 return self

def __WCS_unpickle__ ( cls , dct , fits_data ) : self = cls . __new__ ( cls ) self . __dict__ . update ( dct ) buffer = io . BytesIO ( fits_data ) hdulist = fits . open ( buffer ) WCS . __init__ ( self , hdulist [ 0 ] . header , hdulist ) return self
unpickles a wcs object from a serialized fits string .