Index: /trunk/ippToPsps/jython/dvo.py
===================================================================
--- /trunk/ippToPsps/jython/dvo.py	(revision 39152)
+++ /trunk/ippToPsps/jython/dvo.py	(revision 39153)
@@ -676,5 +676,5 @@
     includes purging detections outside sky area
     '''
-    def nativeIngestDetections(self, boxId, boxDim):
+    def nativeIngestDetections(self, boxId, boxDim, myBatchType):
 
         # clear the 'ingested' field for all boxes owned by this host
@@ -709,7 +709,7 @@
 
         # ST and FW need to use just a skycell
-        if self.batchType == "ST" :
+        if myBatchType == "ST" :
             myBorder = self.skychunk.BORDER_SKYCELL
-        if self.batchType == "FW" :
+        if myBatchType == "FW" :
             myBorder = self.skychunk.BORDER_SKYCELL
 
@@ -796,9 +796,8 @@
             else:
                 cmd += " -photcode-start 12000 -photcode-end 12500"
-        ## if (useFW == 1):
-        ##     if (self.config.camera == "simtest"):
-        ##         print "need photcodes for non gpc1 camera"
-        ##     else:
-        ##         print "need photcode for warp for gpc1 camera, default is no selection, should work, could be slow"
+
+        if (useST + useP2 + useDF + useFW > 1):
+            self.logger.errorPair("multiple batch types in a run", "NOW ILLEGAL")
+            os._exit(5)
                 
         ## dvopsps can take a very long time. try 2 or 3 times to re-establish communication with the db before proceeding?
Index: /trunk/ippToPsps/jython/loader.py
===================================================================
--- /trunk/ippToPsps/jython/loader.py	(revision 39152)
+++ /trunk/ippToPsps/jython/loader.py	(revision 39153)
@@ -172,5 +172,5 @@
                     if (batchType == "P2" or batchType == "ST" or batchType =="DF" or batchType == "FW"):
                         if self.config.resetDvo or not self.ippToPspsDb.isBoxIngested(boxId, self.scratchDb.dbHost):
-                            if not self.dvo.nativeIngestDetections(boxId, boxDim):
+                            if not self.dvo.nativeIngestDetections(boxId, boxDim, batchType):
                                 self.logger.error("Unable to ingest detections with nativeIngest")
                                 return False
