IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31220


Ignore:
Timestamp:
Apr 6, 2011, 10:23:26 PM (15 years ago)
Author:
rhenders
Message:

Introduced logging; fixed output paths

File:
1 edited

Legend:

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

    r31180 r31220  
    22
    33import stilts
     4import logging
     5import logging.config
    46from java.lang import *
    57from java.sql import *
     
    1416    Constructor
    1517    '''
    16     def __init__(self):
    17        super(InitBatch, self).__init__("init")
     18    def __init__(self, logger):
     19       super(InitBatch, self).__init__(logger, "init")
    1820
    19        self.outputFitsPath = "00000000.FITS";
     21       self.outputFitsFile = "00000000.FITS";
     22       self.outputFitsPath = self.localOutPath + "/" + self.outputFitsFile
    2023
    21 
    22 initBatch = InitBatch()
     24logging.config.fileConfig("logging.conf")
     25logger = logging.getLogger("initbatch")
     26initBatch = InitBatch(logger)
    2327initBatch.createEmptyPspsTables()
    2428initBatch.exportPspsTablesToFits()
Note: See TracChangeset for help on using the changeset viewer.