use keplerid property instead
@@ -61,7 +61,7 @@ class KeplerTargetPixelFile(TargetPixelFile):
def __repr__(self):
- return('KeplerTargetPixelFile Object (ID: {})'.format(self.hdu[0].header['KEPLERID']))
+ return('KeplerTargetPixelFile Object (ID: {})'.format(self.keplerid))
@property
def hdu(self):
