Changeset 34661 for trunk/ippToPsps/jython/stackbatch.py
- Timestamp:
- Nov 6, 2012, 3:19:54 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/stackbatch.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/stackbatch.py
r34640 r34661 75 75 self.skycell = self.skycell[8:12] 76 76 self.projectioncell = self.skycell 77 78 # proposed new values. Need to coordinate with the SkyCell table 79 # this fits in 32 bits for 0 < tessID < 214 80 # self.skycell = str( (tessID * (10000 * 1000)) + (int(self.projectioncell) * 1000) + cellID ) 77 81 78 82 self.analysisVer = meta[2]; … … 611 615 ,surveyID \ 612 616 FROM StackDetection" 613 self.logger.info(sql)614 617 self.scratchDb.execute(sql) 615 618 # insert calibration information from dvoDetections into the Table … … 623 626 a.expTime = b.expTime, \ 624 627 a.airMass = b.airMass \ 625 WHERE a.objID = b.objID AND a.ippDetectID = b.ippDetectID" 626 # XXXX: this qualifier assumes that there is only one stack being processed at a time 627 self.logger.info(sql) 628 WHERE a.stackDetectID = b.detectID" 628 629 self.scratchDb.execute(sql) 629 630 self.scratchDb.updateAllRows(tableName, "dataRelease", str(self.config.dataRelease)) … … 669 670 self.scratchDb.execute("ALTER TABLE StackDetectionCalib CHANGE dec_ `dec` double") 670 671 671 672 673 672 return True 674 673 … … 696 695 sql = "UPDATE " + table + " AS a, " + self.scratchDb.dvoDetectionTable + " AS b SET \ 697 696 a.ippObjID = b.ippObjID, \ 698 a.stackDetectID = 10 * b.detectID + " + str(self.filterID) + ", \697 a.stackDetectID = b.detectID, \ 699 698 a.objID = b.objID \ 700 699 WHERE a.ippDetectID = b.ippDetectID \ … … 712 711 sql = "UPDATE " + table + " AS a, " + self.scratchDb.dvoDetectionTable + " AS b SET \ 713 712 a.ippObjID = b.ippObjID, \ 714 a.stackDetectID = 10 * b.detectID + " + str(self.filterID) + ", \713 a.stackDetectID = b.detectID, \ 715 714 a.objID = b.objID, \ 716 715 a.infoFlag = b.flags << 45 | a.infoFlag \
Note:
See TracChangeset
for help on using the changeset viewer.
