IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 10, 2015, 1:40:08 PM (11 years ago)
Author:
eugene
Message:

fix test for table existence (called test before measurement)

File:
1 edited

Legend:

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

    r38837 r38839  
    653653                   
    654654                    ota = "XY%d%d" % (x, y)
    655                     if ota not in self.imageIDs: continue
    656                
    657                     # I need better control over this..
    658                     if False and self.config.test and not ((x == 0) and (y == 1)):
    659                         print "skipping ota: " + ota
    660                         continue
    661                        
    662655                    self.alterPspsTablesChip(ota, ota + ".hdr", x, y)
    663656
    664         if self.config.camera == "simtest":
    665             # try the test Chip
    666             self.alterPspsTablesChip("Chip", "Chip.hdr", 0, 0)
    667 
    668         # now run DVO code to get all IDs ( XXX deprecated, uses dvograbber)
    669         # if not self.getIDsFromDVO(): return False
     657        self.alterPspsTablesChip("Chip", "Chip.hdr", 0, 0)
    670658
    671659        # dec is reserved in MySQL, so STILTS replaces if with dec_, which is not the name of
     
    693681
    694682                ota = "XY%d%d" % (x, y)
    695                 if ota not in self.imageIDs: continue
    696 
    697683                extension = ota + "_psf"
     684                if extension not in self.tablesLoaded: continue
     685
    698686                self.scratchDb.createIndex(extension, "IPP_IDET")
    699687
    700         # try the test Chip
    701         self.scratchDb.createIndex("Chip_psf", "IPP_IDET")
     688        extension = "Chip_psf"
     689        if extension in self.tablesLoaded:
     690            # try the test Chip
     691            self.scratchDb.createIndex(extension, "IPP_IDET")
    702692
    703693        self.logger.infoPair("created indexes on", "IPP tables")     
     
    892882
    893883                ota = "XY%d%d" % (x, y)
    894                 if ota not in self.imageIDs: continue
    895 
    896                 if False and self.config.test and not ((x == 0) and (y == 1)):
    897                     print "skipping ota " + ota
    898                     continue
     884                extension = ota + "_psf"
     885                if extension not in self.tablesLoaded: continue
    899886
    900887                if self.populatePspsTablesChip(ota, x, y, results, tables): otaCount = otaCount + 1
     
    906893
    907894
    908         if "Chip" in self.imageIDs:
     895        extension = "Chip_psf"
     896        if extension in self.tablesLoaded:
    909897            if self.populatePspsTablesChip("Chip", 0, 0, results, tables): otaCount = otaCount + 1
    910898            if self.skipBatch:
Note: See TracChangeset for help on using the changeset viewer.