Changeset 35496
- Timestamp:
- May 3, 2013, 8:25:23 AM (13 years ago)
- Location:
- trunk/ippToPsps/jython
- Files:
-
- 3 edited
-
batch.py (modified) (1 diff)
-
objectbatch.py (modified) (1 diff)
-
stackbatch.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/batch.py
r35417 r35496 65 65 self.scratchDb = scratchDb 66 66 self.batchType = batchType; 67 self.skipBatch = False; # set to true if there is a non-fatal error 67 68 self.pspsVoTableFilePath = self.config.configDir + "tables." + batchType + ".vot" 68 69 -
trunk/ippToPsps/jython/objectbatch.py
r35451 r35496 222 222 cpsTableName = self.scratchDb.getDbFriendlyTableName(self.region + ".cps") 223 223 224 self.logger.infoPair("setting to null > 1e-38 and < 1e-38 in", "cps FLUX_KRON_ERR") 225 sql = "UPDATE " + cpsTableName + " set FLUX_KRON_ERR = NULL where FLUX_KRON_ERR < 1e-37 AND FLUX_KRON_ERR > -1e-37 " 224 if False: 225 self.logger.infoPair("setting to null > 1e-38 and < 1e-38 in", "cps FLUX_KRON_ERR") 226 sql = "UPDATE " + cpsTableName + " set FLUX_KRON_ERR = NULL where FLUX_KRON_ERR < 1e-37 AND FLUX_KRON_ERR > -1e-37 " 226 227 227 try:228 self.scratchDb.execute(sql)229 except:230 self.logger.errorPair("Couldn't squash out of range stuff", sql)231 return False232 233 self.logger.infoPair("setting to null > 1e-38 and < 1e-38 in", "cps FLUX_KRON")234 sql = "UPDATE " + cpsTableName + " set FLUX_KRON = NULL where FLUX_KRON < 1e-37 AND FLUX_KRON > -1e-37 "228 try: 229 self.scratchDb.execute(sql) 230 except: 231 self.logger.errorPair("Couldn't squash out of range stuff", sql) 232 return False 233 234 self.logger.infoPair("setting to null > 1e-38 and < 1e-38 in", "cps FLUX_KRON") 235 sql = "UPDATE " + cpsTableName + " set FLUX_KRON = NULL where FLUX_KRON < 1e-37 AND FLUX_KRON > -1e-37 " 235 236 236 try: 237 self.scratchDb.execute(sql) 238 except: 239 self.logger.errorPair("Couldn't squash out of range stuff", sql) 240 return False 241 242 243 237 try: 238 self.scratchDb.execute(sql) 239 except: 240 self.logger.errorPair("Couldn't squash out of range stuff", sql) 241 return False 244 242 245 243 -
trunk/ippToPsps/jython/stackbatch.py
r35452 r35496 570 570 571 571 ### XXX this should not be a DEEP_STACK only case... 572 if false and self.stackType == "DEEP_STACK":572 if False and self.stackType == "DEEP_STACK": 573 573 574 574 #if deep stack and instFlux = null and err not null … … 953 953 def populatePspsTables(self): 954 954 955 self.skipBatch = False 956 955 957 if not self.useFullTables: 956 958 if not self.getIDsFromDVO():
Note:
See TracChangeset
for help on using the changeset viewer.
