Changeset 32192
- Timestamp:
- Aug 25, 2011, 1:05:26 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/stackbatch.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/stackbatch.py
r32166 r32192 385 385 self.updateStackTypeID("StackDetection") 386 386 self.updateDvoIDs("StackDetection") 387 sql = "ALTER TABLE StackDetection ADD PRIMARY KEY (objID, stackDetectID)"388 self.scratchDb.execute(sql) 389 387 sql = "ALTER IGNORE TABLE StackDetection ADD PRIMARY KEY (objID)" 388 self.scratchDb.execute(sql) 389 390 390 if self.stackType == "DEEP_STACK": 391 391 … … 394 394 SET instFlux = 2*b.PSF_INST_FLUX_SIG \ 395 395 WHERE instFlux IS NULL \ 396 AND a.ippDetectID = b.IPP_IDET \ 396 397 AND b.PSF_INST_FLUX_SIG IS NOT NULL" 397 398 self.scratchDb.execute(sql) 398 # instFlux = 2*PSF_INST_FLUX_SIG399 399 400 400 self.scratchDb.reportAndDeleteRowsWithNULLS("StackDetection", "instFlux") … … 591 591 imageID = self.scratchDb.getImageIDFromExternID(self.header['SOURCEID'], self.header['IMAGEID']) 592 592 self.logger.debug("Updating table '" + table + "' with DVO IDs...") 593 sql = "UPDATE IGNORE" + table + " AS a, " + self.scratchDb.dvoDetectionTable + " AS b SET \593 sql = "UPDATE " + table + " AS a, " + self.scratchDb.dvoDetectionTable + " AS b SET \ 594 594 a.ippObjID = b.ippObjID, \ 595 595 a.stackDetectID = b.detectID, \
Note:
See TracChangeset
for help on using the changeset viewer.
