IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36720


Ignore:
Timestamp:
May 1, 2014, 5:20:08 PM (12 years ago)
Author:
heather
Message:

working on batch.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/batch.py

    r36190 r36720  
    551551        # for P2/ST, this reads the detection tables from the CMF/SMF file(s)
    552552        # for OB, this imports object data from DVO
    553         if not self.importIppTables():
    554             if self.batchType == "OB":
    555                 self.logger.errorPair("skipping this batch", "no dvo tables for this region")
    556                 self.ippToPspsDb.updateProcessed(self.batchID, 1)
    557                 return True
    558 
    559             self.logger.errorPair("Aborting this batch", "could not import IPP tables")
    560             self.ippToPspsDb.updateProcessed(self.batchID, -1)
    561             raise
     553        if self.batchType != "ST":
     554            # if not ST we do it
     555            if not self.importIppTables():
     556                if self.batchType == "OB":
     557                    self.logger.errorPair("skipping this batch", "no dvo tables for this region")
     558                    self.ippToPspsDb.updateProcessed(self.batchID, 1)
     559                    return True
     560                self.logger.errorPair("Aborting this batch", "could not import IPP tables")
     561                self.ippToPspsDb.updateProcessed(self.batchID, -1)
     562                raise
    562563
    563564        if not self.populatePspsTables():
Note: See TracChangeset for help on using the changeset viewer.