Changeset 31951
- Timestamp:
- Jul 29, 2011, 2:46:05 PM (15 years ago)
- Location:
- trunk/ippToPsps/jython
- Files:
-
- 2 edited
-
detectionbatch.py (modified) (1 diff)
-
stackbatch.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/detectionbatch.py
r31936 r31951 533 533 Updates provided table with DVO IDs from DVO table 534 534 ''' 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) 539 538 sql = "UPDATE IGNORE " + table + " AS a, " + self.scratchDb.dvoDetection + " AS b SET \ 540 539 a.ippObjID = b.ippObjID, \ -
trunk/ippToPsps/jython/stackbatch.py
r31859 r31951 588 588 def updateDvoIDs(self, table): 589 589 590 imageID = self.scratchDb.getImageIDFromExternID(self.header['SOURCEID'], self.header['IMAGEID'])591 592 590 self.logger.debug("Updating table '" + table + "' with DVO IDs...") 593 591 sql = "UPDATE IGNORE " + table + " AS a, " + self.scratchDb.dvoDetection + " AS b SET \ … … 597 595 WHERE a.ippDetectID = b.ippDetectID \ 598 596 AND b.sourceID = " + self.header['SOURCEID'] + "\ 599 AND b.imageID = " + s tr(imageID)597 AND b.imageID = " + self.header['IMAGEID'] 600 598 self.scratchDb.execute(sql) 601 599
Note:
See TracChangeset
for help on using the changeset viewer.
