IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 19, 2013, 4:35:54 PM (13 years ago)
Author:
eugene
Message:

use MEMORY engine for dvoDetectionFull; add error handline for dvopsps; check mysql version; remove some test verbosity; check for image existence in dvoImages; skip bad batches but do not exit; fix precision issues; add -realgpc option (part of -test mode); log times in milliseconds

Location:
trunk/ippToPsps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps

  • trunk/ippToPsps/jython/batch.py

    r35174 r35417  
    276276            p = Popen(cmd, shell=True, stdout=PIPE)
    277277            p.wait()
     278            if p.returncode != 0:
     279                self.logger.errorPair("error running xmllint for ", tmpPath)
     280                raise
    278281        except:
    279282            self.logger.errorPair("Popen failed", cmd)
     
    301304        p = Popen(cmd, shell=True, stdout=PIPE)
    302305        p.wait()
    303 
    304306        if p.returncode != 0:
    305307            self.logger.errorPair("tar command", "failed")
     
    311313        p = Popen(cmd, shell=True, stdout=PIPE)
    312314        p.wait()
    313 
    314315        if p.returncode != 0:
    315316            self.logger.errorPair("gzip command", "failed")
     
    415416
    416417          # drop any previous tables before import
    417           #self.scratchDb.dropTable(table.name)
     418          self.scratchDb.dropTable(table.name)
    418419
    419420          # IPP FITS files are littered with infinities, so remove these
     
    426427          try:
    427428              table.write(self.scratchDb.url + '#' + table.name)
    428               # print "wrote to mysql ", table
    429               self.scratchDb.killLastConnectionID()
     429              # XXX this one is not needed
     430              # self.scratchDb.killLastConnectionID()
    430431              count = count + 1
    431432          except:
     
    454455           # get everything from table
    455456           try:
     457               print "reading table from mysql ", table
    456458               _table = stilts.tread(self.scratchDb.url + '#SELECT * FROM ' + table)
    457459               self.scratchDb.killLastConnectionID()
     
    518520        p = Popen(cmd, shell=True, stdout=PIPE)
    519521        p.wait()
     522        if p.returncode != 0:
     523            self.logger.errorPair("dvograbber command", "failed")
     524            return False
    520525
    521526        rowCount = self.scratchDb.getRowCount("dvoDetection")
     
    554559
    555560        if not self.populatePspsTables():
     561            if self.skipBatch:
     562                self.ippToPspsDb.updateProcessed(self.batchID, -1)
     563                return True
     564
    556565            self.logger.errorPair("Aborting this batch", "unable to populate PSPS tables")
    557566            self.ippToPspsDb.updateProcessed(self.batchID, -1)
Note: See TracChangeset for help on using the changeset viewer.