- Timestamp:
- Sep 6, 2011, 11:00:22 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110710/ippToPsps/jython
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
initbatch.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110710/ippToPsps/jython
-
Property svn:ignore
set to
*.class
-
Property svn:ignore
set to
-
branches/eam_branches/ipp-20110710/ippToPsps/jython/initbatch.py
r31287 r32337 1 1 #!/usr/bin/env jython 2 2 3 import sys 3 4 import stilts 4 5 import logging … … 6 7 from java.lang import * 7 8 from java.sql import * 9 10 from xml.etree.ElementTree import ElementTree, Element, tostring 11 8 12 from batch import Batch 13 from pslogger import PSLogger 14 from gpc1db import Gpc1Db 15 from ipptopspsdb import IppToPspsDb 16 from stackbatch import StackBatch 17 from detectionbatch import DetectionBatch 9 18 10 19 ''' … … 16 25 Constructor 17 26 ''' 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) 20 41 21 42 self.outputFitsFile = "00000000.FITS"; 22 43 self.outputFitsPath = self.localOutPath + "/" + self.outputFitsFile 23 44 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.
