IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31113


Ignore:
Timestamp:
Apr 1, 2011, 10:35:15 PM (15 years ago)
Author:
rhenders
Message:

Using new log() method in base class; changed ambiguous method name from process to populatePspsTables

File:
1 edited

Legend:

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

    r31109 r31113  
    160160    '''
    161161    def populateStackMeta(self):
    162         print "Procesing StackMeta table";
     162        self.log("Procesing StackMeta table")
    163163
    164164        sql = "INSERT INTO StackMeta (\
     
    197197        ," + self.header['PC002002'] + " \
    198198        )"
    199         print sql
    200199        self.stmt.execute(sql)
    201200
     
    208207    '''
    209208    def populateStackDetection(self):
    210         print "Procesing StackDetection table";
     209        self.log("Procesing StackDetection table")
    211210
    212211        # insert all the detections
     
    266265    '''
    267266    def populateStackApFlx(self):
    268         print "Procesing StackApFlx table";
     267        self.log("Procesing StackApFlx table")
    269268 
    270269        sql = "INSERT INTO StackApFlx \
     
    275274        self.stmt.execute(sql)
    276275
    277         print "    Adding 1st convolved fluxes"
     276        self.log("    Adding 1st convolved fluxes")
    278277        self.updateApFlxs("c1", "< 7.0")
    279         print "    Adding 2nd convolved fluxes"
     278        self.log("    Adding 2nd convolved fluxes")
    280279        self.updateApFlxs("c2", "> 7.0")
    281280
    282         print "    Adding petrosian stuff for extended sources"
     281        self.log("    Adding petrosian stuff for extended sources")
    283282        sql = "UPDATE StackApFlx AS a, SkyChip_xsrc AS b SET \
    284283        petRadius=b.PETRO_RADIUS \
     
    311310    '''
    312311    def populateStackModelFit(self):
    313         print "Procesing StackModelFit table";
     312        self.log("Procesing StackModelFit table")
    314313
    315314        # insert all the detections
     
    318317
    319318        # populate model parameters
    320         print "    Adding deVaucouleurs fit"
     319        self.log("    Adding deVaucouleurs fit")
    321320        self.updateModelFit("deV", "PS_MODEL_DEV")
    322         print "    Adding exponential fit"
     321        self.log("    Adding exponential fit")
    323322        self.updateModelFit("exp", "PS_MODEL_EXP")
    324         print "    Adding sersic fit"
     323        self.log("    Adding sersic fit")
    325324        self.updateModelFit("ser", "PS_MODEL_SERSIC")
    326325
     
    336335    def indexPspsTables(self):
    337336
    338         print "Creating indexes on PSPS tables"
     337        self.log("Creating indexes on PSPS tables")
    339338        self.createIndex("StackDetection", "ippDetectID")
    340339        self.createIndex("StackApFlx", "ippDetectID")
     
    346345    def indexIppTables(self):
    347346
    348         print "Creating indexes on IPP tables"
     347        self.log("Creating indexes on IPP tables")
    349348        self.createIndex("SkyChip_psf", "IPP_IDET")
    350349        self.createIndex("SkyChip_xfit", "IPP_IDET")
     
    355354    Does the processing, i.e. pulling stuff from IPP tables into PSPS tables
    356355    '''
    357     def process(self):
     356    def populatePspsTables(self):
    358357
    359358        # determine skycell from header value
     
    374373stackBatch.createEmptyPspsTables()
    375374#stackBatch.importIppTables()
    376 stackBatch.process()
     375stackBatch.populatePspsTables()
    377376stackBatch.exportPspsTablesToFits()
Note: See TracChangeset for help on using the changeset viewer.