- Timestamp:
- Jun 19, 2012, 5:24:19 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippToPsps/jython/config.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ippToPsps/jython/config.py
r33415 r34041 8 8 9 9 ''' 10 A class encapsulating the ippToPsps config file 10 A class encapsulating a ippToPsps configuration. This information is stored in the 'config' table 11 of the ipptopsps database, but there are some higher level config details in the 'settings.xml' file 11 12 ''' 12 13 class Config(object): … … 27 28 self.settingsDoc = ElementTree(file=self.settingsPath) 28 29 self.logPath = self.settingsDoc.find("logPath").text 29 30 self.czarPlotsPath = self.settingsDoc.find("czarPlotsPath").text 30 31 31 32 # this is the border (in degrees) that we place around any loading box of 32 33 # PS1 pointings to ensure we pull a large enough area out of DVO 33 self.BORDER = 1.6 34 self.BORDER = 1.65 34 35 self.isLoaded = False 35 36 … … 38 39 ''' 39 40 def printAll(self): 41 42 self.logger.infoTitle("Config") 40 43 41 44 try: … … 46 49 self.logger.infoPair("Loading epoch", self.epoch) 47 50 self.logger.infoPair("Data release", "%d" % self.dataRelease) 48 self.logger.infoBool("Test mode?", self.test)49 self.logger.infoBool("Forcing?", self.force)50 self.logger.infoBool("Reporting NULLS?", self.reportNulls)51 51 for batchType in self.batchTypes: self.logger.infoPair("Queuing batch type", batchType) 52 52 except: … … 60 60 except: pass 61 61 62 ''' 63 Queuing this batch type? 64 ''' 65 def queuingThisBatchType(self, batchType): 66 if batchType in self.batchTypes: return 1 67 return 0 62 68 63 69 ''' … … 129 135 def getDbPassword(self, dbType): return self.settingsDoc.find(dbType +"/password").text 130 136 131
Note:
See TracChangeset
for help on using the changeset viewer.
