- Timestamp:
- Oct 21, 2016, 11:24:05 AM (10 years ago)
- Location:
- trunk/ippToPsps
- Files:
-
- 3 added
- 11 edited
-
config/Makefile.am (modified) (1 diff)
-
config/ippToPspsDbSchema.sql (modified) (1 diff)
-
config/tables.GO.vot (added)
-
jython/batch.py (modified) (1 diff)
-
jython/cleanup.py (modified) (1 diff)
-
jython/dvogaiaobjects.py (added)
-
jython/gaiaobjectbatch.py (added)
-
jython/insert.dvodb.info.py (modified) (1 diff)
-
jython/ipptopspsdb.py (modified) (4 diffs)
-
jython/loader.py (modified) (1 diff)
-
jython/metrics.py (modified) (4 diffs)
-
jython/plotter.py (modified) (1 diff)
-
jython/pollOdm.py (modified) (2 diffs)
-
jython/queue.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/config/Makefile.am
r39010 r39785 10 10 tables.FO.vot \ 11 11 tables.FG.vot \ 12 tables.GO.vot \ 12 13 settings.xml 13 14 -
trunk/ippToPsps/config/ippToPspsDbSchema.sql
r38823 r39785 111 111 `queue_FW` tinyint(1) default '0', 112 112 `queue_FO` tinyint(1) default '0', 113 `queue_FG` tinyint(1) default '0', 114 `queue_GO` tinyint(1) default '0', 113 115 `active` tinyint(1) default '1', 114 116 `parallel` tinyint(1) default '0', -
trunk/ippToPsps/jython/batch.py
r39315 r39785 700 700 # for OB, this imports object data from DVO 701 701 if not self.importIppTables(): 702 if (self.batchType == "OB" or self.batchType =="DO" or self.batchType =="FO" or self.batchType =="FG" ):702 if (self.batchType == "OB" or self.batchType =="DO" or self.batchType =="FO" or self.batchType =="FG" or self.batchType =="GO"): 703 703 self.logger.errorPair("skipping this batch", "no dvo tables for this region") 704 704 self.ippToPspsDb.updateProcessed(self.batchID, 1) -
trunk/ippToPsps/jython/cleanup.py
r39154 r39785 51 51 self.clean("FO") 52 52 self.clean("FG") 53 self.clean("GO") 53 54 54 55 self.checkClientStatus() -
trunk/ippToPsps/jython/insert.dvodb.info.py
r38884 r39785 83 83 # XXX : need to fix 'dvo.setSkyArea' or this may not return the full list for a parallel dvo 84 84 #for object-like batches, info comes from dvo 85 if (batchType == "OB" or batchType =="DO" or batchType =="FO" ):85 if (batchType == "OB" or batchType =="DO" or batchType =="FO" or batchType == "FG" or batchType == "GO"): 86 86 self.dvoObjects.setSkyArea( 87 87 self.skychunk.minRa, -
trunk/ippToPsps/jython/ipptopspsdb.py
r39764 r39785 819 819 820 820 sql = "INSERT INTO diffobject ( \ 821 batch_id \ 822 ,region \ 823 ) VALUES ( \ 824 " + str(batchID) + " \ 825 ,'" + region + "' \ 826 )" 827 828 self.execute(sql) 829 830 ''' 831 Inserts some gaiaobject metadata for this batch ID 832 ''' 833 def insertGaiaObjectMeta(self, batchID, region): 834 835 sql = "INSERT INTO gaiaobject ( \ 821 836 batch_id \ 822 837 ,region \ … … 1104 1119 ,queue_FW \ 1105 1120 ,queue_FO \ 1121 ,queue_FG \ 1122 ,queue_GO \ 1106 1123 ,parallel \ 1107 1124 ,P2_smf_version \ … … 1179 1196 ### if rs.getInt(25) == 1: self.skychunk.batchTypes.append("FG") fix this when P2 is done 1180 1197 if rs.getInt(25) == 1: self.skychunk.batchTypes.append("FO") 1198 if rs.getInt(26) == 1: self.skychunk.batchTypes.append("FG") 1199 if rs.getInt(27) == 1: self.skychunk.batchTypes.append("GO") 1200 1181 1201 1182 1202 self.skychunk.force = True # TODO 1183 1203 self.skychunk.parallel = False # TODO 1184 1204 1185 if rs.getInt(2 6) == 1: self.skychunk.parallel = True1186 self.skychunk.P2_smf_version = rs.getString(2 7)1205 if rs.getInt(28) == 1: self.skychunk.parallel = True 1206 self.skychunk.P2_smf_version = rs.getString(29) 1187 1207 # options: "use_new", "not_reproc", "use_original" 1188 1208 1189 self.skychunk.ST_cmf_version = rs.getString( 28)1209 self.skychunk.ST_cmf_version = rs.getString(30) 1190 1210 # options: not used? 1191 1211 … … 1212 1232 # print "typename: " + rsmd.getColumnTypeName(16) 1213 1233 1214 self.skychunk.trange_start = rs.getString( 29)1234 self.skychunk.trange_start = rs.getString(31) 1215 1235 # options: "YYYY-MM-DD,HH:MM:SS" or "0000-00-00 00:00:00" 1216 1236 1217 self.skychunk.trange_end = rs.getString(3 0)1237 self.skychunk.trange_end = rs.getString(32) 1218 1238 # options: "YYYY-MM-DD,HH:MM:SS" or "0000-00-00 00:00:00" 1219 1239 -
trunk/ippToPsps/jython/loader.py
r39507 r39785 302 302 id, 303 303 batchID) 304 elif batchType == "GO": 305 batch = GaiaObjectBatch(self.logger, 306 self.config, 307 self.skychunk, 308 self.gpc1Db, 309 self.ippToPspsDb, 310 self.scratchDb, 311 id, 312 batchID) 304 313 305 314 batch.run() -
trunk/ippToPsps/jython/metrics.py
r38969 r39785 53 53 rateFO = self.printStats("FO") 54 54 rateFG = self.printStats("FG") 55 rateGO = self.printStats("GO") 55 56 self.logger.info("+----+------------------+---------------+-------------------+------------------+----------------+") 56 57 … … 76 77 pendFOProcessed = self.printTableRow(stages, "FO") 77 78 pendFGProcessed = self.printTableRow(stages, "FG") 79 pendGOProcessed = self.printTableRow(stages, "GO") 78 80 self.writeTableSeparator(colCount) 79 81 … … 93 95 try: self.logger.infoPair("Estimated time for FOs", "%.1f hours" % (pendFOProcessed / rateFO)) 94 96 except: pass 95 try: self.logger.infoPair("Estimated time for FGs", "%.1f hours" % (pendFGProcessed / rateFG)) 97 try: self.logger.infoPair("Estimated time for FGs", "%.1f hours" % (pendFGProcessed / rateFG)) 98 try: self.logger.infoPair("Estimated time for GOs", "%.1f hours" % (pendGOProcessed / rateGO)) 96 99 except: pass 97 100 … … 107 110 self.plot.createDensityPlot("FO", True) 108 111 self.plot.createDensityPlot("FG", True) 112 self.plot.createDensityPlot("GO", True) 113 109 114 # some clean-up before going to sleep 110 115 self.ippToPspsDb.purgeDeadClients() -
trunk/ippToPsps/jython/plotter.py
r36697 r39785 32 32 self.plot.createDensityPlot("FW") 33 33 self.plot.createDensityPlot("FO") 34 self.plot.createDensityPlot("FG") 35 self.plot.createDensityPlot("GO") 36 34 37 35 38 ''' -
trunk/ippToPsps/jython/pollOdm.py
r38969 r39785 42 42 else: self.stages = [self.STAGE] 43 43 44 if self.BATCHTYPE == "all": self.batchTypes = ['IN', 'P2', 'ST', 'OB', 'DF', 'DO', 'FW', 'FO', 'FG' ]44 if self.BATCHTYPE == "all": self.batchTypes = ['IN', 'P2', 'ST', 'OB', 'DF', 'DO', 'FW', 'FO', 'FG', 'GO'] 45 45 else: self.batchTypes = [self.BATCHTYPE] 46 46 … … 126 126 ''' 127 127 def printUsage(self): 128 super(PollOdm, self).printUsage("<IN|P2|ST|OB|DF|DO|FW|FO|FG| all> <unloaded|unmergeworthy|unmerged|all> [hours]")128 super(PollOdm, self).printUsage("<IN|P2|ST|OB|DF|DO|FW|FO|FG|GO|all> <unloaded|unmergeworthy|unmerged|all> [hours]") 129 129 130 130 -
trunk/ippToPsps/jython/queue.py
r39159 r39785 73 73 74 74 # for object-like batches, info comes from dvo 75 if (batchType == "OB" or batchType =="DO" or batchType =="FO" or batchType == "FG" ):75 if (batchType == "OB" or batchType =="DO" or batchType =="FO" or batchType == "FG" or batchType == "GO"): 76 76 self.dvoObjects.setSkyArea( 77 77 self.skychunk.minRa,
Note:
See TracChangeset
for help on using the changeset viewer.
