IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 19, 2011, 11:00:33 AM (15 years ago)
Author:
rhenders
Message:

skipping corners when loop through all OTAs

File:
1 edited

Legend:

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

    r31303 r31325  
    360360        self.log("Creating indexes on IPP tables")
    361361
    362         for x in range(0,7):
    363            for y in range(0,7):
    364 
    365                extension = "XY%d%d_psf" % (x, y)
    366                self.createIndex(extension, "IPP_IDET")
     362        for x in range(0,8):
     363            for y in range(0,8):
     364
     365                # dodge the corners
     366                if x==0 and y==0: continue
     367                if x==0 and y==7: continue
     368                if x==7 and y==0: continue
     369                if x==7 and y==7: continue
     370
     371                extension = "XY%d%d_psf" % (x, y)
     372                self.createIndex(extension, "IPP_IDET")
    367373
    368374    '''
     
    373379
    374380        self.logger.info("Updating table '" + table + "' with DVO IDs...")
    375         sql = "UPDATE " + table + " AS a, dvo AS b SET \
     381        sql = "UPDATE " + table + " AS a, dvoDetection AS b SET \
    376382               a.ippObjID = b.ippObjID, \
    377383               a.detectID = b.detectID, \
     
    395401        for x in range(3, 4):
    396402            for y in range(3, 4):
    397                
     403               
     404                # dodge the corners
     405                if x==0 and y==0: continue
     406                if x==0 and y==7: continue
     407                if x==7 and y==0: continue
     408                if x==7 and y==7: continue
     409
    398410                ota = "XY%d%d" % (x, y)
    399411               
Note: See TracChangeset for help on using the changeset viewer.