IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 31, 2013, 4:13:09 PM (13 years ago)
Author:
eugene
Message:

split out config (static info) and skychunk (area being processed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219/ippToPsps/jython/stackbatch.py

    r35060 r35076  
    3333                 logger,
    3434                 config,
     35                 skychunk,
    3536                 gpc1Db,
    3637                 ippToPspsDb,
     
    4344               logger,
    4445               config,
     46               skychunk,
    4547               gpc1Db,
    4648               ippToPspsDb,
     
    4951               batchID,
    5052               "ST",
    51                gpc1Db.getStackStageCmf(config.dvoLabel, stackID),
     53               gpc1Db.getStackStageCmf(skychunk.dvoLabel, stackID),
    5254               useFullTables)
    5355
     
    421423        self.scratchDb.updateAllRows("StackMeta", "surveyID", str(self.surveyID))
    422424        self.scratchDb.updateFilterID("StackMeta", self.filter)
    423         self.scratchDb.updateAllRows("StackMeta", "dataRelease", str(self.config.dataRelease))
     425        self.scratchDb.updateAllRows("StackMeta", "dataRelease", str(self.skychunk.dataRelease))
    424426        self.updateStackTypeID("StackMeta")
    425427
     
    528530        self.scratchDb.updateFilterID("StackDetection", self.filter)
    529531       
    530         self.scratchDb.updateAllRows("StackDetection", "dataRelease", str(self.config.dataRelease))
     532        self.scratchDb.updateAllRows("StackDetection", "dataRelease", str(self.skychunk.dataRelease))
    531533       
    532534        self.scratchDb.updateAllRows("StackDetection", "primaryF", "0")
     
    612614        self.scratchDb.updateAllRows("StackApFlx", "surveyID", str(self.surveyID))
    613615        self.scratchDb.updateFilterID("StackApFlx", self.filter)
    614         self.scratchDb.updateAllRows("StackApFlx", "dataRelease", str(self.config.dataRelease))
     616        self.scratchDb.updateAllRows("StackApFlx", "dataRelease", str(self.skychunk.dataRelease))
    615617        self.scratchDb.updateAllRows("StackApFlx", "primaryF", "0")
    616618        self.scratchDb.updateAllRows("StackApFlx", "activeFlag", "0")
     
    646648        self.scratchDb.updateAllRows("StackModelFit", "surveyID", str(self.surveyID))
    647649        self.scratchDb.updateFilterID("StackModelFit", self.filter)
    648         self.scratchDb.updateAllRows("StackModelFit", "dataRelease", str(self.config.dataRelease))
     650        self.scratchDb.updateAllRows("StackModelFit", "dataRelease", str(self.skychunk.dataRelease))
    649651        self.scratchDb.updateAllRows("StackModelFit", "primaryF", "0")
    650652        self.scratchDb.updateAllRows("StackModelFit", "activeFlag", "0")
     
    711713
    712714        self.scratchDb.updateAllRows("SkinnyObject", "surveyID", str(self.surveyID))
    713         self.scratchDb.updateAllRows("SkinnyObject", "dataRelease", str(self.config.dataRelease))
     715        self.scratchDb.updateAllRows("SkinnyObject", "dataRelease", str(self.skychunk.dataRelease))
    714716
    715717    '''   
     
    756758            AND b.imageID = " + str(imageID)
    757759        self.scratchDb.execute(sql)
    758         self.scratchDb.updateAllRows(tableName, "dataRelease", str(self.config.dataRelease))
     760        self.scratchDb.updateAllRows(tableName, "dataRelease", str(self.skychunk.dataRelease))
    759761       
    760762    def populateStackDetectionCalib(self):
     
    787789          b.expTime,       \
    788790          b.airMass,       \
    789           " + str(self.config.dataRelease) + " \
     791          " + str(self.skychunk.dataRelease) + " \
    790792         FROM              \
    791793           StackDetection as a \
     
    801803
    802804        ## XXX write this with the select/insert
    803         # self.scratchDb.updateAllRows(tableName, "dataRelease", str(self.config.dataRelease))
     805        # self.scratchDb.updateAllRows(tableName, "dataRelease", str(self.skychunk.dataRelease))
    804806
    805807    '''
     
    821823
    822824        self.scratchDb.updateFilterID("ObjectCalColor", self.filter)
    823         self.scratchDb.updateAllRows("ObjectCalColor", "dataRelease", str(self.config.dataRelease))
     825        self.scratchDb.updateAllRows("ObjectCalColor", "dataRelease", str(self.skychunk.dataRelease))
    824826
    825827
Note: See TracChangeset for help on using the changeset viewer.