Index: trunk/ippToPsps/jython/plot.py
===================================================================
--- trunk/ippToPsps/jython/plot.py	(revision 34163)
+++ trunk/ippToPsps/jython/plot.py	(revision 34165)
@@ -40,5 +40,5 @@
             OUTPUTFILE = self.config.name + "_" + batchType + "_" + timestamp + ".png"
 
-        f = os.popen('gnuplot', 'w')
+        f = os.popen('/home/panstarrs/ipp/local/bin/gnuplot', 'w')
             
         if 0:
Index: trunk/ippToPsps/jython/stackbatch.py
===================================================================
--- trunk/ippToPsps/jython/stackbatch.py	(revision 34163)
+++ trunk/ippToPsps/jython/stackbatch.py	(revision 34165)
@@ -397,4 +397,9 @@
 
         self.scratchDb.execute(sql)
+        #it is possible to drop some detections from dvo (that are present in the cmf). when that happens we get a 0 for objid
+        #we drop those...
+        sql="DELETE FROM StackDetection where objID = 0"
+        self.scratchDb.execute(sql)
+        self.logger.infoPair("Deleting", "entries with StackDetection.objID = 0")
 
         self.scratchDb.updateAllRows("StackDetection", "surveyID", str(self.surveyID))
@@ -421,4 +426,7 @@
         self.scratchDb.reportAndDeleteRowsWithNULLS("StackDetection", "instFlux")
         self.scratchDb.reportAndDeleteRowsWithNULLS("StackDetection", "objID")
+        sql="DELETE FROM StackDetection where objID = 0"
+        self.scratchDb.execute(sql)
+        self.logger.infoPair("Deleting", "entries with StackDetection.objID = 0")
 
 
