- Timestamp:
- Apr 3, 2013, 12:52:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130307/ippToPsps/jython/batch.py
r35174 r35352 415 415 416 416 # drop any previous tables before import 417 #self.scratchDb.dropTable(table.name)417 self.scratchDb.dropTable(table.name) 418 418 419 419 # IPP FITS files are littered with infinities, so remove these … … 426 426 try: 427 427 table.write(self.scratchDb.url + '#' + table.name) 428 # print "wrote to mysql ", table429 self.scratchDb.killLastConnectionID()428 # XXX this one is not needed 429 # self.scratchDb.killLastConnectionID() 430 430 count = count + 1 431 431 except: … … 454 454 # get everything from table 455 455 try: 456 print "reading table from mysql ", table 456 457 _table = stilts.tread(self.scratchDb.url + '#SELECT * FROM ' + table) 457 458 self.scratchDb.killLastConnectionID() … … 554 555 555 556 if not self.populatePspsTables(): 557 if self.skipBatch: 558 self.ippToPspsDb.updateProcessed(self.batchID, -1) 559 return True 560 556 561 self.logger.errorPair("Aborting this batch", "unable to populate PSPS tables") 557 562 self.ippToPspsDb.updateProcessed(self.batchID, -1)
Note:
See TracChangeset
for help on using the changeset viewer.
