Changeset 32495
- Timestamp:
- Oct 5, 2011, 5:01:52 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/metrics.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/metrics.py
r32453 r32495 52 52 53 53 # get a master list of IDs in DVO for this batch type 54 allIDs = gpc1Db.getIDsInThisDVODbForThisStage(DVOLABEL, batchType) 54 if MINRA and MAXRA and MINDEC and MAXDEC: 55 allIDs = gpc1Db.getIDsInThisDVODbForThisStage(DVOLABEL, batchType, MINRA, MAXRA, MINDEC, MAXDEC) 56 else: 57 allIDs = gpc1Db.getIDsInThisDVODbForThisStage(DVOLABEL, batchType) 55 58 prevList = allIDs 56 59 numEverything = len(allIDs) … … 72 75 numFail = len(fail) 73 76 numPending = len(pending) 77 78 #if stage == 'processed': 79 # for n in pending: print n 74 80 75 81 str = "\033[1;34m%5s\033[1;m \033[1;32m%5s\033[1;m \033[1;31m%5s\033[1;m " % (getIntAsString(numPending), getIntAsString(numSuccess), getIntAsString(numFail)) … … 125 131 gpc1Db = Gpc1Db(logger, configDoc) 126 132 133 MINRA = None 134 MAXRA = None 135 MINDEC = None 136 MAXDEC = None 137 127 138 DVOLABEL = configDoc.find("dvo/gpc1Label").text 139 try: 140 MINRA = float(configDoc.find("dvo/minRA").text) 141 MAXRA = float(configDoc.find("dvo/maxRA").text) 142 MINDEC = float(configDoc.find("dvo/minDec").text) 143 MAXDEC = float(configDoc.find("dvo/maxDec").text) 144 except: 145 pass 146 128 147 EPOCH = configDoc.find("options/epoch").text 129 148
Note:
See TracChangeset
for help on using the changeset viewer.
