Example #1
0
 def loadLightCurve(self,photometryFilename='',photometryType=None):
     if photometryFilename is '':
         if isPSFString(photometryType): photometryFilename=self.path+os.sep+'FittedStacks'+os.sep+'FittedStack_'+self.fileID+'.h5'
         elif isAperString(photometryType): photometryFilename=self.path+os.sep+'ApertureStacks'+os.sep+'ApertureStack_'+self.fileID+'.h5'
         else:
             print 'You must provide a valid photometry type if you want to automatically generate the photometry filename'
             raise ValueError
     
     self.photometry_params, self.photometry_dict = readPhotometryFile(photometryFilename)
     self.photometryType = self.photometry_params['photometryType']
Example #2
0
 def viewLightCurve(self,photometryFilename='',photometryType=None):
     if photometryFilename is '':
         if isPSFString(photometryType): photometryFilename=self.path+os.sep+'FittedStacks'+os.sep+'FittedStack_'+self.fileID+'.h5'
         elif isAperString(photometryType): photometryFilename=self.path+os.sep+'ApertureStacks'+os.sep+'ApertureStack_'+self.fileID+'.h5'
         else:
             print 'You must provide a valid photometry type if you want to automatically generate the photometry filename'
             raise ValueError
     
     headerDict, dataDict = readPhotometryFile(photometryFilename)
     photometryType = headerDict['photometryType']
     #if isPSFString(photometryType):
     #    pop = PSF_Popup()
     print "implement this!"