Changeset 32579
- Timestamp:
- Oct 27, 2011, 1:40:40 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/load.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/load.py
r32468 r32579 55 55 logger.errorPair("Problem loading IDs from config under", "options/ids/id") 56 56 57 # no config dictated IDs, so get from DVO instead58 57 if len(allIDs) > 0: 59 58 logger.infoPair("Using config IDs (not DVO)", "%d" % len(allIDs)) 59 # no config dictated IDs, so get from DVO instead 60 60 else: 61 allIDs = gpc1Db.getIDsInThisDVODbForThisStage(DVOGPC1LABEL, batchType) 61 62 if MINRA and MAXRA and MINDEC and MAXDEC: 63 allIDs = gpc1Db.getIDsInThisDVODbForThisStage(DVOGPC1LABEL, batchType, MINRA, MAXRA, MINDEC, MAXDEC) 64 else: 65 allIDs = gpc1Db.getIDsInThisDVODbForThisStage(DVOGPC1LABEL, batchType) 66 62 67 logger.infoPair("All %s items in DVO" % batchType, "%d" % len(allIDs)) 63 68 … … 170 175 SURVEY = configDoc.find("options/survey").text 171 176 177 # get equatorial coord limits, if any 178 MINRA = None 179 MAXRA = None 180 MINDEC = None 181 MAXDEC = None 182 try: 183 MINRA = float(configDoc.find("dvo/minRA").text) 184 MAXRA = float(configDoc.find("dvo/maxRA").text) 185 MINDEC = float(configDoc.find("dvo/minDec").text) 186 MAXDEC = float(configDoc.find("dvo/maxDec").text) 187 except: 188 pass 189 172 190 # prompt user: FORCE and PUBLISH is a dangerous combination 173 191 if FORCE and PUBLISH and not QUEUE_IN:
Note:
See TracChangeset
for help on using the changeset viewer.
