IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34165 for trunk


Ignore:
Timestamp:
Jul 13, 2012, 6:34:51 PM (14 years ago)
Author:
heather
Message:

stackbatch should drop things which exist in cmf but not dvo.

Location:
trunk/ippToPsps/jython
Files:
2 edited

Legend:

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

    r33740 r34165  
    4040            OUTPUTFILE = self.config.name + "_" + batchType + "_" + timestamp + ".png"
    4141
    42         f = os.popen('gnuplot', 'w')
     42        f = os.popen('/home/panstarrs/ipp/local/bin/gnuplot', 'w')
    4343           
    4444        if 0:
  • trunk/ippToPsps/jython/stackbatch.py

    r33962 r34165  
    397397
    398398        self.scratchDb.execute(sql)
     399        #it is possible to drop some detections from dvo (that are present in the cmf). when that happens we get a 0 for objid
     400        #we drop those...
     401        sql="DELETE FROM StackDetection where objID = 0"
     402        self.scratchDb.execute(sql)
     403        self.logger.infoPair("Deleting", "entries with StackDetection.objID = 0")
    399404
    400405        self.scratchDb.updateAllRows("StackDetection", "surveyID", str(self.surveyID))
     
    421426        self.scratchDb.reportAndDeleteRowsWithNULLS("StackDetection", "instFlux")
    422427        self.scratchDb.reportAndDeleteRowsWithNULLS("StackDetection", "objID")
     428        sql="DELETE FROM StackDetection where objID = 0"
     429        self.scratchDb.execute(sql)
     430        self.logger.infoPair("Deleting", "entries with StackDetection.objID = 0")
    423431
    424432
Note: See TracChangeset for help on using the changeset viewer.