IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31951


Ignore:
Timestamp:
Jul 29, 2011, 2:46:05 PM (15 years ago)
Author:
rhenders
Message:

externID column has been dropped from dvoMeta table

Location:
trunk/ippToPsps/jython
Files:
2 edited

Legend:

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

    r31936 r31951  
    533533    Updates provided table with DVO IDs from DVO table
    534534    '''
    535     def updateDvoIDs(self, table, sourceID, externID):
    536 
    537         imageID = self.scratchDb.getImageIDFromExternID(sourceID, externID)
    538         self.logger.debug("Updating table '" + table + "' with DVO IDs using imageID = %d" % imageID)
     535    def updateDvoIDs(self, table, sourceID, imageID):
     536
     537        self.logger.debug("Updating table '" + table + "' with DVO IDs using imageID = " + imageID)
    539538        sql = "UPDATE IGNORE " + table + " AS a, " + self.scratchDb.dvoDetection + " AS b SET \
    540539               a.ippObjID = b.ippObjID, \
  • trunk/ippToPsps/jython/stackbatch.py

    r31859 r31951  
    588588    def updateDvoIDs(self, table):
    589589
    590         imageID = self.scratchDb.getImageIDFromExternID(self.header['SOURCEID'], self.header['IMAGEID'])
    591 
    592590        self.logger.debug("Updating table '" + table + "' with DVO IDs...")
    593591        sql = "UPDATE IGNORE " + table + " AS a, " + self.scratchDb.dvoDetection + " AS b SET \
     
    597595               WHERE a.ippDetectID = b.ippDetectID \
    598596               AND b.sourceID = " + self.header['SOURCEID'] + "\
    599                AND b.imageID = " + str(imageID)
     597               AND b.imageID = " + self.header['IMAGEID']
    600598        self.scratchDb.execute(sql)
    601599
Note: See TracChangeset for help on using the changeset viewer.