IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2015, 4:23:59 PM (11 years ago)
Author:
heather
Message:

SAS37 final

File:
1 edited

Legend:

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

    r37935 r38083  
    332332            raise
    333333        self.logger.infoPair("need to cull"," nulls objid")
     334        rowCountBefore = self.scratchDb.getRowCount("ForcedWarpMeasurement")
    334335        results= self.scratchDb.reportAndDeleteRowsWithNULLS("ForcedWarpMeasurement", "objID")
    335 
    336 
    337 
     336        rowCountAfter =  self.scratchDb.getRowCount("ForcedWarpMeasurement")
     337        self.logger.infoPair("row count of ForcedWarpMeasurement",rowCountBefore)
     338        self.logger.infoPair("row count of ForcedWarpMeasurement after cull of null objID", rowCountAfter)
     339        if rowCountAfter == 0:
     340            self.skipBatch = True
     341            self.logger.infoPair ("skip this batch, it is bad")
     342            return False
    338343#        self.generateRandomIDs()
    339344
Note: See TracChangeset for help on using the changeset viewer.