def info_string(self): if not self._info_string: astropystr = wcs_info_str(self.low_level_wcs) lines = astropystr.split('\n') lines.insert(1, '') lines.insert(2, 'WCS frame: ' + self.low_level_wcs.title) if self.low_level_wcs.subtitle1: lines.insert(3, '') lines.insert(4, 'WCS subframe1: ' + self.low_level_wcs.subtitle1) lines.insert(5, 'WCS subframe2: ' + self.low_level_wcs.subtitle2) self._info_string = '\n'.join(lines) return self._info_string
def __str__(self): return wcs_info_str(self)