Changeset 35006
- Timestamp:
- Jan 22, 2013, 5:03:39 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121219/ippToPsps/jython/batch.py
r34991 r35006 39 39 useFullTables): 40 40 41 # print "starting the batch" 42 43 # self.printline = 0 44 # self.testprint() 45 41 46 self.readHeader = False 42 47 self.config = config … … 48 53 self.logger.infoSeparator() 49 54 self.logger.debug("Batch class constructor") 55 56 # self.testprint() 50 57 51 58 self.configDir = os.getenv("IPPTOPSPS_DATA") … … 62 69 self.pspsVoTableFilePath = self.configDir + "tables." + batchType + ".vot" 63 70 71 # self.testprint() 72 64 73 # check FITS file is ok 65 74 if self.fits: … … 99 108 if not os.path.exists(self.localOutPath): os.makedirs(self.localOutPath) 100 109 110 # self.testprint() 111 101 112 # store today's date 102 113 now = datetime.datetime.now(); … … 116 127 self.logger.infoPair("Input FITS primary header", "%s cards found" % self.fits.getPrimaryHeaderCardCount()) 117 128 129 # self.testprint() 130 118 131 self.logger.infoPair("Output path", self.localOutPath) 119 132 120 133 134 def testprint(self): 135 print "here ", self.printline 136 self.printline += 1 137 121 138 ''' 122 139 Static method to generated batch name from batch ID … … 380 397 self.logger.infoPair("Importing tables with filter", filter) 381 398 399 # print "trying to read ", self.fits.getPath() 400 382 401 try: 383 402 tables = stilts.treads(self.fits.getPath()) … … 389 408 for table in tables: 390 409 410 # print "import IPP table ", table 391 411 match = re.match(filter, table.name) 392 412 if not match: continue … … 517 537 raise 518 538 539 # this reads the detection tables from the CMF/SMF file(s) 519 540 if not self.importIppTables(): 520 541 self.logger.errorPair("Aborting this batch", "could not import IPP tables")
Note:
See TracChangeset
for help on using the changeset viewer.
