IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35053


Ignore:
Timestamp:
Jan 25, 2013, 10:13:37 AM (13 years ago)
Author:
eugene
Message:

add imageID to the StackDetectionCalib update statement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219/ippToPsps/jython/stackbatch.py

    r35052 r35053  
    737737        self.scratchDb.execute(sql)
    738738
     739        imageID = self.scratchDb.getImageIDFromExternID(self.header['IMAGEID'])
     740        self.logger.infoPair("obtained","imageID")
     741
    739742        # insert calibration information from dvoDetections into the Table
    740743        sql = "UPDATE " + tableName + " AS a, "  + self.scratchDb.dvoDetectionTable + " AS b \
     
    747750            a.expTime = b.expTime, \
    748751            a.airMass = b.airMass   \
    749             WHERE a.stackDetectID = b.detectID"
     752            WHERE a.stackDetectID = b.detectID \
     753            AND b.imageID = " + str(imageID)
    750754        self.scratchDb.execute(sql)
    751755        self.scratchDb.updateAllRows(tableName, "dataRelease", str(self.config.dataRelease))
Note: See TracChangeset for help on using the changeset viewer.