IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32005 for trunk/ippToPsps


Ignore:
Timestamp:
Aug 3, 2011, 3:32:10 PM (15 years ago)
Author:
rhenders
Message:

removed code to instantiate InitBatch object: this is now done from ippToPsps program; implemented necessary base-class methods as required

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/initbatch.py

    r32000 r32005  
    4343       self.outputFitsPath = self.localOutPath + "/" + self.outputFitsFile
    4444
    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")
    5450
    5551
    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
    6158
    62 # open config file
    63 configDoc = ElementTree(file=CONFIG)
    64 
    65 # create database objects
    66 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.