IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33530 for trunk/ippToPsps


Ignore:
Timestamp:
Mar 15, 2012, 11:47:55 AM (15 years ago)
Author:
rhenders
Message:

now not using source_id in detection table; fixed by with dataRelease - trying to use as class variable, but it is a config field now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/stackbatch.py

    r33509 r33530  
    8282       #self.expTime = gpc1Db.getStackExpTime(self.id)
    8383       self.expTime = self.header['EXPTIME']
    84 
    85        self.logger.infoPair("Got exp time of %d" % self.expTime)
    8684
    8785       # delete PSPS tables
    … …  
    285283        " + str(self.id) + " \
    286284        ," + self.skycell + " \
    287         ," + str(self.scratchDb.getPhotoCalID(self.header['SOURCEID'], self.header['IMAGEID'])) + " \
     285        ," + str(self.scratchDb.getPhotoCalID(self.header['IMAGEID'])) + " \
    288286        ," + self.header['FPA.ZP'] + " \
    289         ," + str(self.expTime) + " \
     287        ," + self.expTime + " \
    290288        ,'" + self.safeDictionaryAccess(self.header, 'PSFMODEL') + "' \
    291289        ,'" + self.safeDictionaryAccess(self.header, 'FWHM_MAJ') + "' \
    … …  
    502500        self.scratchDb.updateAllRows("StackModelFit", "surveyID", str(self.surveyID))
    503501        self.scratchDb.updateFilterID("StackModelFit", self.filter)
    504         self.scratchDb.updateAllRows("StackModelFit", "dataRelease", str(self.dataRelease))
     502        self.scratchDb.updateAllRows("StackModelFit", "dataRelease", str(self.config.dataRelease))
    505503        self.scratchDb.updateAllRows("StackModelFit", "primaryF", "0")
    506504        self.scratchDb.updateAllRows("StackModelFit", "activeFlag", "0")
    … …  
    567565
    568566        self.scratchDb.updateAllRows("SkinnyObject", "surveyID", str(self.surveyID))
    569         self.scratchDb.updateAllRows("SkinnyObject", "dataRelease", str(self.dataRelease))
     567        self.scratchDb.updateAllRows("SkinnyObject", "dataRelease", str(self.config.dataRelease))
    570568
    571569    '''
    … …  
    587585
    588586        self.scratchDb.updateFilterID("ObjectCalColor", self.filter)
    589         self.scratchDb.updateAllRows("ObjectCalColor", "dataRelease", str(self.dataRelease))
     587        self.scratchDb.updateAllRows("ObjectCalColor", "dataRelease", str(self.config.dataRelease))
    590588
    591589
    … …  
    621619    def updateDvoIDs(self, table):
    622620
    623         imageID = self.scratchDb.getImageIDFromExternID(self.header['SOURCEID'], self.header['IMAGEID'])
     621        imageID = self.scratchDb.getImageIDFromExternID(self.header['IMAGEID'])
    624622        self.logger.debug("Updating table '" + table + "' with DVO IDs...")
    625623        sql = "UPDATE " + table + " AS a, " + self.scratchDb.dvoDetectionTable + " AS b SET \
    … …  
    628626               a.objID = b.objID \
    629627               WHERE a.ippDetectID = b.ippDetectID \
    630                AND b.sourceID = " + self.header['SOURCEID'] + "\
    631628               AND b.imageID = " + str(imageID)
    632629        self.scratchDb.execute(sql)
Note: See TracChangeset for help on using the changeset viewer.