Changeset 32005 for trunk/ippToPsps
- Timestamp:
- Aug 3, 2011, 3:32:10 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/initbatch.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/initbatch.py
r32000 r32005 43 43 self.outputFitsPath = self.localOutPath + "/" + self.outputFitsFile 44 44 45 46 ''' 47 Start of program. 48 ''' 49 50 if len(sys.argv) > 1: CONFIG = sys.argv[1] 51 else: 52 print "** Usage: " + sys.argv[0] + " <configPath>" 53 sys.exit(1) 45 ''' 46 Empty implementation 47 ''' 48 def importIppTables(self, filter=""): 49 self.logger.debug("importIppTables method here to satidfy base-class") 54 50 55 51 56 # set up logging 57 logging.config.fileConfig("logging.conf") 58 logging.setLoggerClass(PSLogger) 59 logger = logging.getLogger("ippToPspsLog") 60 logger.setLevel(logging.INFO) 52 ''' 53 Implementing base class method, though not necessary 54 ''' 55 def populatePspsTables(self): 56 self.logger.debug("No processing required for this batch type") 57 return 1 61 58 62 # open config file63 configDoc = ElementTree(file=CONFIG)64 65 # create database objects66 gpc1Db = Gpc1Db(logger, configDoc)67 ippToPspsDb = IppToPspsDb(logger, configDoc)68 69 initBatch = InitBatch(logger, CONFIG, configDoc, gpc1Db, ippToPspsDb)70 initBatch.createEmptyPspsTables()71 initBatch.exportPspsTablesToFits()72 initBatch.writeBatchManifest()
Note:
See TracChangeset
for help on using the changeset viewer.
