IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35496


Ignore:
Timestamp:
May 3, 2013, 8:25:23 AM (13 years ago)
Author:
eugene
Message:

correct some minor errors

Location:
trunk/ippToPsps/jython
Files:
3 edited

Legend:

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

    r35417 r35496  
    6565        self.scratchDb = scratchDb
    6666        self.batchType = batchType;
     67        self.skipBatch = False; # set to true if there is a non-fatal error
    6768        self.pspsVoTableFilePath = self.config.configDir + "tables." + batchType + ".vot"
    6869
  • trunk/ippToPsps/jython/objectbatch.py

    r35451 r35496  
    222222        cpsTableName = self.scratchDb.getDbFriendlyTableName(self.region + ".cps")
    223223
    224         self.logger.infoPair("setting to null  > 1e-38 and < 1e-38 in", "cps FLUX_KRON_ERR")
    225         sql = "UPDATE " + cpsTableName + " set FLUX_KRON_ERR = NULL where FLUX_KRON_ERR < 1e-37 AND FLUX_KRON_ERR > -1e-37 "
     224        if False:
     225            self.logger.infoPair("setting to null  > 1e-38 and < 1e-38 in", "cps FLUX_KRON_ERR")
     226            sql = "UPDATE " + cpsTableName + " set FLUX_KRON_ERR = NULL where FLUX_KRON_ERR < 1e-37 AND FLUX_KRON_ERR > -1e-37 "
    226227     
    227         try:
    228             self.scratchDb.execute(sql)
    229         except:
    230             self.logger.errorPair("Couldn't squash out of range stuff", sql)
    231             return False
    232 
    233         self.logger.infoPair("setting to null  > 1e-38 and < 1e-38 in", "cps FLUX_KRON")
    234         sql = "UPDATE " + cpsTableName + " set FLUX_KRON = NULL where FLUX_KRON < 1e-37 AND FLUX_KRON > -1e-37 "
     228            try:
     229                self.scratchDb.execute(sql)
     230            except:
     231                self.logger.errorPair("Couldn't squash out of range stuff", sql)
     232                return False
     233
     234            self.logger.infoPair("setting to null  > 1e-38 and < 1e-38 in", "cps FLUX_KRON")
     235            sql = "UPDATE " + cpsTableName + " set FLUX_KRON = NULL where FLUX_KRON < 1e-37 AND FLUX_KRON > -1e-37 "
    235236     
    236         try:
    237             self.scratchDb.execute(sql)
    238         except:
    239             self.logger.errorPair("Couldn't squash out of range stuff", sql)
    240             return False
    241 
    242 
    243 
     237            try:
     238                self.scratchDb.execute(sql)
     239            except:
     240                self.logger.errorPair("Couldn't squash out of range stuff", sql)
     241                return False
    244242
    245243       
  • trunk/ippToPsps/jython/stackbatch.py

    r35452 r35496  
    570570 
    571571        ### XXX this should not be a DEEP_STACK only case...
    572         if false and self.stackType == "DEEP_STACK":
     572        if False and self.stackType == "DEEP_STACK":
    573573
    574574            #if deep stack and instFlux = null and err not null
     
    953953    def populatePspsTables(self):
    954954
     955        self.skipBatch = False
     956
    955957        if not self.useFullTables:
    956958            if not self.getIDsFromDVO():
Note: See TracChangeset for help on using the changeset viewer.