Changeset 39027 for trunk/ippToPsps/jython/forcedgalaxybatch.py
- Timestamp:
- Nov 2, 2015, 2:42:04 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/forcedgalaxybatch.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/forcedgalaxybatch.py
r39008 r39027 137 137 138 138 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) 141 148 142 149 # This is going to need to join elsewhere to get all the fields? … … 161 168 # sqlLine.group("a." + filter[1] + "GalDecErr", "b.DEC_ERR") 162 169 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)) 164 171 165 172 self.scratchDb.execute(sql) … … 192 199 self.logger.infoPair("Adding 'row' columns to", "Forced Galaxy, cpt tables") 193 200 self.scratchDb.addRowCountColumn("ForcedGalaxyShape", "row") 194 self.scratchDb.addRowCountColumn(cp sTableName, "row")201 self.scratchDb.addRowCountColumn(cpqTableName, "row") 195 202 196 203 self.logger.infoPair("generating unique ids for ","ForcedGalaxyShape") … … 221 228 def populatePspsTables(self): 222 229 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.
