IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 10, 2015, 2:11:52 PM (11 years ago)
Author:
eugene
Message:

fix test for table existence (Chip.psf vs Chip_psf)

File:
1 edited

Legend:

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

    r38839 r38841  
    680680                if x==7 and y==7: continue
    681681
    682                 ota = "XY%d%d" % (x, y)
    683                 extension = ota + "_psf"
    684                 if extension not in self.tablesLoaded: continue
    685 
    686                 self.scratchDb.createIndex(extension, "IPP_IDET")
    687 
    688         extension = "Chip_psf"
    689         if extension in self.tablesLoaded:
    690             # try the test Chip
    691             self.scratchDb.createIndex(extension, "IPP_IDET")
     682                cmfTable = "XY%d%d.psf" % (x, y)
     683                mysTable = "XY%d%d_psf" % (x, y)
     684                if cmfTable not in self.tablesLoaded: continue
     685
     686                self.scratchDb.createIndex(mysTable, "IPP_IDET")
     687
     688        cmfTable = "XY%d%d.psf" % (x, y)
     689        mysTable = "XY%d%d_psf" % (x, y)
     690        if cmfTable in self.tablesLoaded:
     691            self.scratchDb.createIndex(mysTable, "IPP_IDET")
    692692
    693693        self.logger.infoPair("created indexes on", "IPP tables")     
     
    860860    def populatePspsTables(self):
    861861
     862        print "********** ***************"
     863        for table in self.tablesLoaded:
     864            print "table: " + str(table)
     865        print "--------------------------"
     866
    862867        # loop through all OTAs again to update with DVO IDs
    863868        self.skipBatch = False
     
    882887
    883888                ota = "XY%d%d" % (x, y)
    884                 extension = ota + "_psf"
     889                extension = ota + ".psf"
    885890                if extension not in self.tablesLoaded: continue
    886891
     
    893898
    894899
    895         extension = "Chip_psf"
     900        extension = "Chip.psf"
    896901        if extension in self.tablesLoaded:
    897902            if self.populatePspsTablesChip("Chip", 0, 0, results, tables): otaCount = otaCount + 1
Note: See TracChangeset for help on using the changeset viewer.