Changeset 37106 for trunk/ippToPsps/jython/stackbatch.py
- Timestamp:
- Jul 24, 2014, 10:12:36 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/stackbatch.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/stackbatch.py
r36744 r37106 1 #!/usr/bin/env jython1 q#!/usr/bin/env jython 2 2 3 3 import os.path … … 215 215 self.scratchDb.dropTable("StackObject") 216 216 self.logger.infoPair("dropping table:","StackModelFit") 217 217 self.scratchDb.dropTable("SkinnyObject") 218 218 self.scratchDb.dropTable("StackModelFit") 219 219 self.logger.infoPair("dropping table:","StackApFlx") … … 785 785 self.logger.infoPair("Deleting", "entries with StackObject.objID = 0") 786 786 # response = raw_input("deleted objID is 0 ") 787 787 ''' 788 Populates the SkinnyObject table 789 ''' 790 def populateSkinnyObject(self): 791 792 self.logger.infoPair("Procesing table", "SkinnyObject") 793 794 sql = "INSERT INTO SkinnyObject (\ 795 objID \ 796 ,ippObjID \ 797 ,projectionCellID \ 798 ) \ 799 SELECT \ 800 DISTINCT objID \ 801 ,ippObjID \ 802 ,projectionCellID \ 803 FROM StackDetection" 804 self.scratchDb.execute(sql) 805 806 self.scratchDb.updateAllRows("SkinnyObject", "surveyID", str(self.surveyID)) 807 self.scratchDb.updateAllRows("SkinnyObject", "dataRelease", str(self.skychunk.dataRelease)) 808 788 809 789 810 ''' … … 1307 1328 1308 1329 ##if self.totalDetections < 1: 1330 #self.logger.infoPair("populating","SkinnyObject") 1331 self.populateSkinnyObject() 1309 1332 1310 1333 ##self.logger.error("No detections to publish") … … 1314 1337 self.tablesToExport.append("StackModelFit") 1315 1338 self.tablesToExport.append("StackApFlx") 1316 1339 self.tablesToExport.append("SkinnyObject") 1317 1340 self.logger.infoPair("finishing","populatePspsTables"); 1318 1341 return True
Note:
See TracChangeset
for help on using the changeset viewer.
