Changeset 38839
- Timestamp:
- Oct 10, 2015, 1:40:08 PM (11 years ago)
- Location:
- trunk/ippToPsps/jython
- Files:
-
- 2 edited
-
batch.py (modified) (2 diffs)
-
detectionbatch.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/batch.py
r38838 r38839 442 442 ''' 443 443 def importIppTables(self, columns="*", filter=""): 444 444 445 445 self.logger.infoPair("Importing tables with filter", filter) 446 446 447 447 # print "trying to read ", self.fits.getPath() 448 448 … … 489 489 self.tablesLoaded.append(table.name) 490 490 491 self.logger.infoPair("Done. Imported", "%d tables" % count)492 self.indexIppTables()493 494 return True491 self.logger.infoPair("Done. Imported", "%d tables" % count) 492 self.indexIppTables() 493 494 return True 495 495 496 496 ''' -
trunk/ippToPsps/jython/detectionbatch.py
r38837 r38839 653 653 654 654 ota = "XY%d%d" % (x, y) 655 if ota not in self.imageIDs: continue656 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: " + ota660 continue661 662 655 self.alterPspsTablesChip(ota, ota + ".hdr", x, y) 663 656 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) 670 658 671 659 # dec is reserved in MySQL, so STILTS replaces if with dec_, which is not the name of … … 693 681 694 682 ota = "XY%d%d" % (x, y) 695 if ota not in self.imageIDs: continue696 697 683 extension = ota + "_psf" 684 if extension not in self.tablesLoaded: continue 685 698 686 self.scratchDb.createIndex(extension, "IPP_IDET") 699 687 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") 702 692 703 693 self.logger.infoPair("created indexes on", "IPP tables") … … 892 882 893 883 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 899 886 900 887 if self.populatePspsTablesChip(ota, x, y, results, tables): otaCount = otaCount + 1 … … 906 893 907 894 908 if "Chip" in self.imageIDs: 895 extension = "Chip_psf" 896 if extension in self.tablesLoaded: 909 897 if self.populatePspsTablesChip("Chip", 0, 0, results, tables): otaCount = otaCount + 1 910 898 if self.skipBatch:
Note:
See TracChangeset
for help on using the changeset viewer.
