- Timestamp:
- Nov 27, 2017, 1:24:35 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/stackbatch.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/stackbatch.py
r39764 r40215 1019 1019 # care of this, but does not? 1020 1020 1021 sqlLine = sqlUtility("UPDATE " + tablename + " SET") 1022 for radius in [1, 2, 3, 4, 5, 6, 7, 8, 9]: 1023 if radius < minRadius: continue 1024 if radius > maxRadius: continue 1025 pspsRadius = radius + 2 1026 sqlLine.group(filter + prefix + "flxR" + str(pspsRadius), "-999") 1027 sqlLine.group(filter + prefix + "flxR" + str(pspsRadius) + "Err", "-999") 1028 sqlLine.group(filter + prefix + "flxR" + str(pspsRadius) + "Std", "-999") 1029 sqlLine.group(filter + prefix + "flxR" + str(pspsRadius) + "Fill", "-999") 1030 1031 sql = sqlLine.makeEquals("") 1021 #chopping this out to see if it still works 1022 1023 #sqlLine = sqlUtility("UPDATE " + tablename + " SET") 1024 #for radius in [1, 2, 3, 4, 5, 6, 7, 8, 9]: 1025 # if radius < minRadius: continue 1026 # if radius > maxRadius: continue 1027 # pspsRadius = radius + 2 1028 # sqlLine.group(filter + prefix + "flxR" + str(pspsRadius), "-999") 1029 # sqlLine.group(filter + prefix + "flxR" + str(pspsRadius) + "Err", "-999") 1030 # sqlLine.group(filter + prefix + "flxR" + str(pspsRadius) + "Std", "-999") 1031 # sqlLine.group(filter + prefix + "flxR" + str(pspsRadius) + "Fill", "-999")# 1032 1033 #sql = sqlLine.makeEquals("") 1032 1034 1033 try: self.scratchDb.execute(sql)1034 except:1035 self.logger.errorPair('failed sql',sql)1036 raise1035 # try: self.scratchDb.execute(sql) 1036 # except: 1037 # self.logger.errorPair('failed sql',sql) 1038 # raise 1037 1039 1038 1040 # set the flux values from the cmf file
Note:
See TracChangeset
for help on using the changeset viewer.
