Changeset 35417 for trunk/ippToPsps/jython/batch.py
- Timestamp:
- Apr 19, 2013, 4:35:54 PM (13 years ago)
- Location:
- trunk/ippToPsps
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
jython/batch.py (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20130307/ippToPsps (added) merged: 35350,35352,35369,35402-35404,35413
- Property svn:mergeinfo changed
-
trunk/ippToPsps/jython/batch.py
r35174 r35417 276 276 p = Popen(cmd, shell=True, stdout=PIPE) 277 277 p.wait() 278 if p.returncode != 0: 279 self.logger.errorPair("error running xmllint for ", tmpPath) 280 raise 278 281 except: 279 282 self.logger.errorPair("Popen failed", cmd) … … 301 304 p = Popen(cmd, shell=True, stdout=PIPE) 302 305 p.wait() 303 304 306 if p.returncode != 0: 305 307 self.logger.errorPair("tar command", "failed") … … 311 313 p = Popen(cmd, shell=True, stdout=PIPE) 312 314 p.wait() 313 314 315 if p.returncode != 0: 315 316 self.logger.errorPair("gzip command", "failed") … … 415 416 416 417 # drop any previous tables before import 417 #self.scratchDb.dropTable(table.name)418 self.scratchDb.dropTable(table.name) 418 419 419 420 # IPP FITS files are littered with infinities, so remove these … … 426 427 try: 427 428 table.write(self.scratchDb.url + '#' + table.name) 428 # print "wrote to mysql ", table429 self.scratchDb.killLastConnectionID()429 # XXX this one is not needed 430 # self.scratchDb.killLastConnectionID() 430 431 count = count + 1 431 432 except: … … 454 455 # get everything from table 455 456 try: 457 print "reading table from mysql ", table 456 458 _table = stilts.tread(self.scratchDb.url + '#SELECT * FROM ' + table) 457 459 self.scratchDb.killLastConnectionID() … … 518 520 p = Popen(cmd, shell=True, stdout=PIPE) 519 521 p.wait() 522 if p.returncode != 0: 523 self.logger.errorPair("dvograbber command", "failed") 524 return False 520 525 521 526 rowCount = self.scratchDb.getRowCount("dvoDetection") … … 554 559 555 560 if not self.populatePspsTables(): 561 if self.skipBatch: 562 self.ippToPspsDb.updateProcessed(self.batchID, -1) 563 return True 564 556 565 self.logger.errorPair("Aborting this batch", "unable to populate PSPS tables") 557 566 self.ippToPspsDb.updateProcessed(self.batchID, -1)
Note:
See TracChangeset
for help on using the changeset viewer.
