IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 2, 2015, 2:42:04 PM (11 years ago)
Author:
eugene
Message:

clean up some test vebosity

File:
1 edited

Legend:

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

    r39008 r39027  
    137137
    138138        for filter in filters:
    139             filterID = self.scratchDb.getFilterId(filter[1])
    140             photcode = self.scratchDb.getPhotoCalID("GPC1." + filter[1] + ".ForcedWarp")
     139            filterID = self.scratchDb.getFilterID(filter[1])
     140
     141            photcodeName = "NONE"
     142            if self.config.camera == "gpc1":
     143                photcodeName = "GPC1." + filter[1] + ".ForcedWarp"
     144            if self.config.camera == "simtest":
     145                photcodeName = "SIMTEST." + filter[1] + ".ForcedWarp"
     146
     147            photcode = self.scratchDb.getPhotcodeByName(photcodeName)
    141148
    142149            # This is going to need to join elsewhere to get all the fields?
     
    161168            # sqlLine.group("a." + filter[1] + "GalDecErr",       "b.DEC_ERR")
    162169
    163             sql = sqlLine.makeEquals("WHERE a.objID = b.OBJ_ID AND a.galModelType = b.MODEL_TYPE AND b.Photcode = " + photcode)
     170            sql = sqlLine.makeEquals("WHERE a.objID = b.OBJ_ID AND a.galModelType = b.MODEL_TYPE AND b.Photcode = " + str(photcode))
    164171
    165172            self.scratchDb.execute(sql)
     
    192199        self.logger.infoPair("Adding 'row' columns to", "Forced Galaxy, cpt tables")
    193200        self.scratchDb.addRowCountColumn("ForcedGalaxyShape", "row")
    194         self.scratchDb.addRowCountColumn(cpsTableName, "row")
     201        self.scratchDb.addRowCountColumn(cpqTableName, "row")
    195202
    196203        self.logger.infoPair("generating unique ids for ","ForcedGalaxyShape")
     
    221228    def populatePspsTables(self):
    222229       
    223         if not self.populateForcedGalaxyShapeTable(): return False
     230        if not self.populateForcedGalaxyShapeTable():
     231            return False
     232           
     233        return True
Note: See TracChangeset for help on using the changeset viewer.