Changeset 35496 for trunk/ippToPsps/jython/objectbatch.py
- Timestamp:
- May 3, 2013, 8:25:23 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/objectbatch.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.
