Changeset 33787 for trunk/ippToPsps/jython/batch.py
- Timestamp:
- Apr 16, 2012, 12:18:37 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/batch.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/batch.py
r33672 r33787 39 39 useFullTables): 40 40 41 self.everythingOK = False42 41 self.readHeader = False 43 42 self.config = config … … 66 65 if not self.header: 67 66 logger.errorPair("Could not read FITS for id", "%d" % id) 68 r eturn67 raise 69 68 70 69 self.scratchDb.setUseFullTables(self.useFullTables) … … 115 114 self.logger.infoPair("Output path", self.localOutPath) 116 115 117 self.everythingOK = True118 116 119 117 ''' … … 510 508 def run(self): 511 509 512 if not self.everythingOK:513 self.logger.errorPair("Aborting this batch", "could not initialize")514 self.ippToPspsDb.updateProcessed(self.batchID, -1)515 return516 517 510 if not self.createEmptyPspsTables(): 518 511 self.logger.errorPair("Aborting this batch", "could not create empty PSPS tables") 519 512 self.ippToPspsDb.updateProcessed(self.batchID, -1) 520 r eturn513 raise 521 514 522 515 if not self.importIppTables(): 523 516 self.logger.errorPair("Aborting this batch", "could not import IPP tables") 524 517 self.ippToPspsDb.updateProcessed(self.batchID, -1) 525 r eturn518 raise 526 519 527 520 if not self.populatePspsTables(): 528 521 self.logger.errorPair("Aborting this batch", "unable to populate PSPS tables") 529 522 self.ippToPspsDb.updateProcessed(self.batchID, -1) 530 r eturn523 raise 531 524 532 525 if not self.exportPspsTablesToFits(): 533 526 self.logger.errorPair("Aborting this batch", "unable to export tables to FITS file") 534 527 self.ippToPspsDb.updateProcessed(self.batchID, -1) 535 r eturn528 raise 536 529 537 530 if self.writeBatchManifest():
Note:
See TracChangeset
for help on using the changeset viewer.
