Changeset 36727
- Timestamp:
- May 2, 2014, 6:47:15 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/stackbatch.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/stackbatch.py
r36726 r36727 619 619 self.logger.infoPair("Procesing table", "StackObject") 620 620 621 622 623 624 625 626 621 self.logger.infoPair("inserting non-filter dependent items into", "StackObject") 627 622 … … 749 744 FROM " + f + "SkyChip_psf" 750 745 751 752 self.scratchDb.execute(sql) 753 746 try: 747 self.scratchDb.execute(sql) 748 except: 749 self.logger.errorPair('failed sql',sql) 750 return 754 751 #it is possible to drop some detections from dvo (that are present in the cmf). when that happens we get a 0 for objid 755 752 #we drop those... 756 753 754 self.logger.infoPair("Deleting", "entries with StackObject.objID = 0") 757 755 sql="DELETE FROM StackObject where objID = 0" 758 self.scratchDb.execute(sql) 759 self.logger.infoPair("Deleting", "entries with StackObject.objID = 0") 760 761 self.scratchDb.updateAllRows("StackObject", "surveyID", str(self.surveyID)) 762 756 try: 757 self.scratchDb.execute(sql) 758 except: 759 self.logger.errorPair('failed sql',sql) 760 return 761 762 try: 763 self.scratchDb.updateAllRows("StackObject", "surveyID", str(self.surveyID)) 764 except: 765 self.logger.errorPair('failed update surveyID on','StackObject') 766 763 767 # self.scratchDb.updateFilterID("StackObject", f+".00000") 764 768 … … 791 795 ### XXX this should not be a DEEP_STACK only case... 792 796 if False and self.stackType == "DEEP_STACK": 793 797 ## need to do for all filters? 794 798 #if deep stack and instFlux = null and err not null 795 799 sql = "UPDATE StackObject AS a, SkyChip_psf AS b \ … … 931 935 932 936 self.scratchDb.updateAllRows("StackApFlx", "surveyID", str(self.surveyID)) 933 self.scratchDb.updateFilterID("StackApFlx", self.filter)934 937 self.scratchDb.updateAllRows("StackApFlx", "dataRelease", str(self.skychunk.dataRelease)) 935 self.scratchDb.updateAllRows("StackApFlx", "activeFlag", "0")936 ##self.updateStackMetaID("StackApFlx")937 938 self.updateStackTypeID("StackApFlx") 938 939 self.updateDvoIDs("StackApFlx")
Note:
See TracChangeset
for help on using the changeset viewer.
