IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 18, 2014, 6:00:15 PM (12 years ago)
Author:
heather
Message:

st/ob/p2/df/do batches all work but have minimal problems in teh columns

File:
1 edited

Legend:

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

    r37592 r37763  
    610610    '''
    611611
    612     def updatePspsUniqueIDs(self,table):
     612    def updatePspsUniqueIDs(self,table, ota):
    613613        sql = "UPDATE "+table+" join (select @r:=@r+1 rownum, objID from \
    614614        (select @r:=0) r, "+table+" t) as foo using (objID) set \
    615         uniquePspsP2id = ((" +str(self.batchID)+ "*1000000000 ) + rownum)"
     615        uniquePspsP2id = ((" +str(self.batchID)+ "*1000000000 ) \
     616        + (" +str(ota) + "*10000000  )+rownum)"
    616617        try: self.scratchDb.execute(sql)
    617618        except:
    618619            self.logger.errorPair('failed sql',sql)
    619             return
     620            raise
    620621       
    621622    '''
     
    651652        #self.logger.info("deleted nulls")
    652653        self.logger.info("add psps unique p2 ids")
    653         self.updatePspsUniqueIDs("Detection_" + chipname, self.imageIDs[chipname])
     654        ota = x*10+y
     655        self.updatePspsUniqueIDs("Detection_" + chipname, ota)
    654656        self.updateImageID("Detection_" + chipname, x, y)
    655657        #self.logger.info("updateImageId")
Note: See TracChangeset for help on using the changeset viewer.