IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 6, 2011, 11:00:22 AM (15 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20110710/ippToPsps/jython
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110710/ippToPsps/jython

    • Property svn:ignore set to
      *.class
  • branches/eam_branches/ipp-20110710/ippToPsps/jython/initbatch.py

    r31287 r32337  
    11#!/usr/bin/env jython
    22
     3import sys
    34import stilts
    45import logging
     
    67from java.lang import *
    78from java.sql import *
     9
     10from xml.etree.ElementTree import ElementTree, Element, tostring
     11
    812from batch import Batch
     13from pslogger import PSLogger
     14from gpc1db import Gpc1Db
     15from ipptopspsdb import IppToPspsDb
     16from stackbatch import StackBatch
     17from detectionbatch import DetectionBatch
    918
    1019'''
     
    1625    Constructor
    1726    '''
    18     def __init__(self, logger):
    19        super(InitBatch, self).__init__(logger, "init")
     27    def __init__(self,
     28            logger,
     29            configPath,
     30            configDoc,
     31            gpc1Db,
     32            ippToPspsDb):
     33       super(InitBatch, self).__init__(logger,
     34               configPath,
     35               configDoc,
     36               gpc1Db,
     37               ippToPspsDb,
     38               0,
     39               "IN",
     40               None)
    2041
    2142       self.outputFitsFile = "00000000.FITS";
    2243       self.outputFitsPath = self.localOutPath + "/" + self.outputFitsFile
    2344
    24 logging.config.fileConfig("logging.conf")
    25 logger = logging.getLogger("initbatch")
    26 initBatch = InitBatch(logger)
    27 initBatch.createEmptyPspsTables()
    28 initBatch.exportPspsTablesToFits()
    29 initBatch.writeBatchManifest()
     45    '''
     46    Empty implementation
     47    '''
     48    def importIppTables(self, filter=""):
     49        self.logger.debug("importIppTables method here to satidfy base-class")
     50
     51
     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
     58
Note: See TracChangeset for help on using the changeset viewer.