Index: trunk/ippToPsps/jython/detectionbatch.py
===================================================================
--- trunk/ippToPsps/jython/detectionbatch.py	(revision 31303)
+++ trunk/ippToPsps/jython/detectionbatch.py	(revision 31325)
@@ -360,9 +360,15 @@
         self.log("Creating indexes on IPP tables")
 
-        for x in range(0,7):
-           for y in range(0,7):
-
-               extension = "XY%d%d_psf" % (x, y)
-               self.createIndex(extension, "IPP_IDET")
+        for x in range(0,8):
+            for y in range(0,8):
+
+                # dodge the corners
+                if x==0 and y==0: continue
+                if x==0 and y==7: continue
+                if x==7 and y==0: continue
+                if x==7 and y==7: continue
+
+                extension = "XY%d%d_psf" % (x, y)
+                self.createIndex(extension, "IPP_IDET")
 
     '''
@@ -373,5 +379,5 @@
 
         self.logger.info("Updating table '" + table + "' with DVO IDs...")
-        sql = "UPDATE " + table + " AS a, dvo AS b SET \
+        sql = "UPDATE " + table + " AS a, dvoDetection AS b SET \
                a.ippObjID = b.ippObjID, \
                a.detectID = b.detectID, \
@@ -395,5 +401,11 @@
         for x in range(3, 4):
             for y in range(3, 4):
-                
+               
+                # dodge the corners
+                if x==0 and y==0: continue
+                if x==0 and y==7: continue
+                if x==7 and y==0: continue
+                if x==7 and y==7: continue
+
                 ota = "XY%d%d" % (x, y)
                 
