IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35006


Ignore:
Timestamp:
Jan 22, 2013, 5:03:39 AM (13 years ago)
Author:
eugene
Message:

add some test output lines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219/ippToPsps/jython/batch.py

    r34991 r35006  
    3939                 useFullTables):
    4040
     41        # print "starting the batch"
     42
     43        # self.printline = 0
     44        # self.testprint()
     45
    4146        self.readHeader = False
    4247        self.config = config
     
    4853        self.logger.infoSeparator()
    4954        self.logger.debug("Batch class constructor")
     55
     56        # self.testprint()
    5057
    5158        self.configDir = os.getenv("IPPTOPSPS_DATA")
     
    6269        self.pspsVoTableFilePath = self.configDir + "tables." + batchType + ".vot"
    6370
     71        # self.testprint()
     72
    6473        # check FITS file is ok
    6574        if self.fits:
     
    99108        if not os.path.exists(self.localOutPath): os.makedirs(self.localOutPath)
    100109
     110        # self.testprint()
     111
    101112        # store today's date
    102113        now = datetime.datetime.now();
     
    116127            self.logger.infoPair("Input FITS primary header", "%s cards found" % self.fits.getPrimaryHeaderCardCount())
    117128
     129        # self.testprint()
     130
    118131        self.logger.infoPair("Output path", self.localOutPath)
    119132
    120133   
     134    def testprint(self):
     135      print "here ", self.printline
     136      self.printline += 1
     137
    121138    '''
    122139    Static method to generated batch name from batch ID
     
    380397      self.logger.infoPair("Importing tables with filter", filter)
    381398
     399      # print "trying to read ", self.fits.getPath()
     400
    382401      try:
    383402          tables = stilts.treads(self.fits.getPath())
     
    389408      for table in tables:
    390409
     410          # print "import IPP table ", table
    391411          match = re.match(filter, table.name)
    392412          if not match: continue
     
    517537            raise
    518538
     539        # this reads the detection tables from the CMF/SMF file(s)
    519540        if not self.importIppTables():
    520541            self.logger.errorPair("Aborting this batch", "could not import IPP tables")
Note: See TracChangeset for help on using the changeset viewer.