Changeset 34661 for trunk/ippToPsps/jython/objectbatch.py
- Timestamp:
- Nov 6, 2012, 3:19:54 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/objectbatch.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/objectbatch.py
r34649 r34661 206 206 cpsTableName = self.scratchDb.getDbFriendlyTableName(self.region + ".cps") 207 207 208 self.logger.infoPair("Populating", "Object") 208 self.logger.infoPair("setting to null > 1e-38 and < 1e-38 in", "cps FLUX_KRON_ERR") 209 sql = "UPDATE " + cpsTableName + " set FLUX_KRON_ERR = NULL where FLUX_KRON_ERR < 1e-37 AND FLUX_KRON_ERR > -1e-37 " 210 211 try: 212 self.scratchDb.execute(sql) 213 except: 214 self.logger.errorPair("Couldn't squash out of range stuff", sql) 215 return False 216 217 self.logger.infoPair("setting to null > 1e-38 and < 1e-38 in", "cps FLUX_KRON") 218 sql = "UPDATE " + cpsTableName + " set FLUX_KRON = NULL where FLUX_KRON < 1e-37 AND FLUX_KRON > -1e-37 " 219 220 try: 221 self.scratchDb.execute(sql) 222 except: 223 self.logger.errorPair("Couldn't squash out of range stuff", sql) 224 return False 225 226 227 228 229 230 self.logger.infoPair("Populating", "Object s") 209 231 self.logger.infoPair("Inserting objects from", "cpt file") 210 232
Note:
See TracChangeset
for help on using the changeset viewer.
