- Timestamp:
- Nov 9, 2015, 5:55:53 PM (11 years ago)
- Location:
- trunk/ippToPsps/jython
- Files:
-
- 6 edited
-
batch.py (modified) (1 diff)
-
detectionbatch.py (modified) (2 diffs)
-
diffbatch.py (modified) (12 diffs)
-
forcedgalaxybatch.py (modified) (2 diffs)
-
forcedwarpbatch.py (modified) (5 diffs)
-
stackbatch.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/batch.py
r39027 r39094 600 600 601 601 # replace nulls and empty fields with weird PSPS -999 pseudo-null 602 # this should be sufficient to handle all NANs (which go in as NULL) 602 603 _table = stilts.tpipe(_table, cmd='replaceval "" -999 *') 603 604 self.logger.infoPair('regex', regex) -
trunk/ippToPsps/jython/detectionbatch.py
r39017 r39094 241 241 242 242 # XXX zp correction should come from DVO 243 detectionThreshold = detectionThreshold + zpImage -2.5 * math.log10(expTime)243 detectionThreshold = detectionThreshold + zpImage + 2.5 * math.log10(expTime) 244 244 245 245 # insert image metadata into table … … 489 489 else: 490 490 sqlLine.group("pltScale", "0.257") 491 sqlLine.group("posAngle", "-999")491 # sqlLine.group("posAngle", "-999") 492 492 sqlLine.group("raErr", "X_PSF_SIG * 0.257") 493 493 sqlLine.group("decErr", "Y_PSF_SIG * 0.257") -
trunk/ippToPsps/jython/diffbatch.py
r39084 r39094 5 5 import glob 6 6 import time 7 import math 7 8 import stilts 8 9 import re … … 154 155 self.logger.infoPair("TessName ",tessName) 155 156 156 # XXX EAM 20140812 : I am hardwiring the parsing logic for RINGS vs LOCAL157 157 if self.tessName[num] == 'RINGS.V3': 158 # skycell is, eg "skycell.1133.081"159 # 0123456789012345158 # skycell is, eg "skycell.1133.081" 159 # 0123456789012345 160 160 self.projectionID[num] = self.skycellName[num][8:12] 161 self.skycellID[num] = self.skycellName[num][13:] 162 self.skycellID[num] = self.skycellName[num][8:] 161 self.skycellID[num] = self.skycellName[num][13:] 163 162 else: 164 # skycell is, eg "skycell.081"165 # 01234567890163 # skycell is, eg "skycell.081" 164 # 01234567890 166 165 self.projectionID[num] = 0 167 self.skycellID[num] = self.skycellName[num][8:11] 168 self.skycellID[num]=self.skycellName[num][8:] 169 if self.skycellID[num] == "": 166 self.skycellID[num] = self.skycellName[num][8:] 167 168 if self.projectionID[num] == "": 169 self.projectionID[num] = -1 170 if self.skycellID[num] == "": 170 171 self.skycellID[num] = -1 171 172 … … 183 184 self.psfModelID[num] = self.scratchDb.getFitModelID(self.psfModelName[num]) 184 185 185 186 186 # drop the existing tables 187 187 … … 191 191 self.dropTableVerbose("DiffDetEffMeta_"+str(num)) 192 192 193 if not self.analysisVer[num]: self.analysisVer[num] = -999193 # if not self.analysisVer[num]: self.analysisVer[num] = -999 194 194 195 195 self.logger.infoPair("getPhotoCalID",diffSkyFileID) … … 222 222 self.logger.infoPair("Proccesing table", "DiffMeta_"+str(num)) 223 223 224 header = self.header[num] 225 226 # Convert detectionThreshold to appropriate magnitudes 227 detectionThreshold = self.getKeyFloat(header, "%.8f", 'DETEFF.MAGREF') 228 zpImage = self.getKeyFloat(header, "%.8f", 'FPA.ZP') 229 230 detectionThreshold = detectionThreshold + zpImage + 2.5 * math.log10(float(self.expTime[num])) 231 224 232 sql = "CREATE TABLE DiffMeta_"+str(num)+" like DiffMeta" 225 233 try: self.scratchDb.execute(sql) … … 234 242 sqlLine.group("negImageID", self.negImageID[num]); 235 243 sqlLine.group("ippDiffID", self.ippDiffID[num]); 244 sqlLine.group("tessID", str(self.tessID[num])) 236 245 sqlLine.group("projectionID", str(self.projectionID[num])) 237 246 sqlLine.group("skycellID", str(self.skycellID[num])) … … 239 248 sqlLine.group("analysisVer", str(self.analysisVer[num])); 240 249 sqlLine.group("md5sum", str(self.md5sum[num])) 250 sqlLine.group("detectionThreshold", detectionThreshold) 241 251 sqlLine.group("expTime", self.expTime[num]); 242 252 sqlLine.group("psfModelID", self.psfModelID[num]) … … 244 254 sqlLine.group("psfWidMajor", self.psfFwhmMajor[num]) 245 255 sqlLine.group("psfWidMinor", self.psfFwhmMinor[num]) 246 sqlLine.group("kernel", self.getKeyValue(self.header[num], 'SUBTRACTION.KERNEL')) 247 sqlLine.group("mode", self.getKeyValue(self.header[num], 'SUBTRACTION.MODE')) 248 sqlLine.group("psfTheta", self.getKeyFloat(self.header[num], "%.8f", 'ANGLE')) 249 sqlLine.group("numStamps", self.getKeyValue(self.header[num], 'SUBTRACTION.STAMPS')) 250 sqlLine.group("stampDevMean", self.getKeyFloat(self.header[num], "%.8e", 'SUBTRACTION.DEV.MEAN')) 251 sqlLine.group("stampDevRMS", self.getKeyFloat(self.header[num], "%.8e", 'SUBTRACTION.DEV.RMS')) 252 sqlLine.group("normalization", self.getKeyFloat(self.header[num], "%.8e", 'SUBTRACTION.NORM')) 253 sqlLine.group("convolveMax", self.getKeyFloat(self.header[num], "%.8e", 'SUBTRACTION.CONV.MAX')) 254 sqlLine.group("deconvolveMax", self.getKeyFloat(self.header[num], "%.8e", 'SUBTRACTION.DECONV.MAX')) 255 sqlLine.group("ctype1", self.getKeyValue(self.header[num], 'CTYPE1')); 256 sqlLine.group("ctype2", self.getKeyValue(self.header[num], 'CTYPE2')); 257 sqlLine.group("crval1", self.getKeyFloat(self.header[num], "%.8f", 'CRVAL1')); 258 sqlLine.group("crval2", self.getKeyFloat(self.header[num], "%.8f", 'CRVAL2')); 259 sqlLine.group("crpix1", self.getKeyFloat(self.header[num], "%.8f", 'CRPIX1')); 260 sqlLine.group("crpix2", self.getKeyFloat(self.header[num], "%.8f", 'CRPIX2')); 261 sqlLine.group("cdelt1", self.getKeyFloat(self.header[num], "%.8e", 'CDELT1')); 262 sqlLine.group("cdelt2", self.getKeyFloat(self.header[num], "%.8e", 'CDELT2')); 263 sqlLine.group("pc001001", self.getKeyFloat(self.header[num], "%.8e", 'PC001001')); 264 sqlLine.group("pc001002", self.getKeyFloat(self.header[num], "%.8e", 'PC001002')); 265 sqlLine.group("pc002001", self.getKeyFloat(self.header[num], "%.8e", 'PC002001')); 266 sqlLine.group("pc002002", self.getKeyFloat(self.header[num], "%.8e", 'PC002002')); 256 257 sqlLine.group("kernel", self.getKeyValue(header, 'SUBTRACTION.KERNEL')) 258 sqlLine.group("mode", self.getKeyValue(header, 'SUBTRACTION.MODE')) 259 sqlLine.group("psfTheta", self.getKeyFloat(header, "%.8f", 'ANGLE')) 260 sqlLine.group("numStamps", self.getKeyValue(header, 'SUBTRACTION.STAMPS')) 261 sqlLine.group("stampDevMean", self.getKeyFloat(header, "%.8e", 'SUBTRACTION.DEV.MEAN')) 262 sqlLine.group("stampDevRMS", self.getKeyFloat(header, "%.8e", 'SUBTRACTION.DEV.RMS')) 263 sqlLine.group("normalization", self.getKeyFloat(header, "%.8e", 'SUBTRACTION.NORM')) 264 sqlLine.group("convolveMax", self.getKeyFloat(header, "%.8e", 'SUBTRACTION.CONV.MAX')) 265 sqlLine.group("deconvolveMax", self.getKeyFloat(header, "%.8e", 'SUBTRACTION.DECONV.MAX')) 266 sqlLine.group("ctype1", self.getKeyValue(header, 'CTYPE1')); 267 sqlLine.group("ctype2", self.getKeyValue(header, 'CTYPE2')); 268 sqlLine.group("crval1", self.getKeyFloat(header, "%.8f", 'CRVAL1')); 269 sqlLine.group("crval2", self.getKeyFloat(header, "%.8f", 'CRVAL2')); 270 sqlLine.group("crpix1", self.getKeyFloat(header, "%.8f", 'CRPIX1')); 271 sqlLine.group("crpix2", self.getKeyFloat(header, "%.8f", 'CRPIX2')); 272 sqlLine.group("cdelt1", self.getKeyFloat(header, "%.8e", 'CDELT1')); 273 sqlLine.group("cdelt2", self.getKeyFloat(header, "%.8e", 'CDELT2')); 274 sqlLine.group("pc001001", self.getKeyFloat(header, "%.8e", 'PC001001')); 275 sqlLine.group("pc001002", self.getKeyFloat(header, "%.8e", 'PC001002')); 276 sqlLine.group("pc002001", self.getKeyFloat(header, "%.8e", 'PC002001')); 277 sqlLine.group("pc002002", self.getKeyFloat(header, "%.8e", 'PC002002')); 267 278 268 279 sql = sqlLine.make(") VALUES ( ", ")") … … 323 334 sqlLine.group("filterID", str(self.filterID[num])) 324 335 sqlLine.group("surveyID", str(self.surveyID)) 336 sqlLine.group("tessID", str(self.tessID[num])) 337 sqlLine.group("projectionID", str(self.projectionID[num])) 325 338 sqlLine.group("skycellID", str(self.skycellID[num])) 326 339 sqlLine.group("expTime", str(self.expTime[num])) … … 336 349 sqlLine.group("decErr", "Y_PSF_SIG * abs(PLTSCALE)") 337 350 else: 338 sqlLine.group("pltScale", "0.25 7")339 sqlLine.group("posAngle", "-999")351 sqlLine.group("pltScale", "0.25") 352 # sqlLine.group("posAngle", "-999") 340 353 sqlLine.group("raErr", "X_PSF_SIG * 0.25") 341 354 sqlLine.group("decErr", "Y_PSF_SIG * 0.25") … … 433 446 self.logger.infoPair("Dropping row column from", "DiffDetection table") 434 447 self.scratchDb.dropColumn("DiffDetection_"+str(num), "row") 435 436 448 437 449 ''' … … 494 506 495 507 header = self.header[num] 496 # CZW: this is broken, and can't get the zeropoint 497 # zpImage = self.scratchDb.getImageZeroPoint(diffSkyFileID) 498 zpImage = 0.0 499 500 if zpImage < 0.0: 501 zpImage = 0.0 508 zpImage = self.getKeyFloat(header,"%.8f","FPA.ZP") 509 502 510 if zpImage == 0.0: 503 511 self.logger.infoPair("CZW If this value for the zeropoint is zero, the getImageZeroPoint call is likely still broken", str(zpImage)) 504 512 505 506 513 magref = self.getKeyFloat(header,"%.8f","DETEFF.MAGREF") + zpImage 507 514 self.logger.infoPair("Found zeropoint and set magref", str(magref)) 508 self.logger.infoPair("CZW If that magref is -5.804804, then it's reading from the PHU, not the Deteff extension.","In a test, I mean.") 515 509 516 sqlLine = sqlUtility("INSERT INTO " + ippTableName + "(") 510 517 sqlLine.group("diffImageID", str(diffSkyFileID)) 511 518 sqlLine.group("magref", magref) 512 519 sql = sqlLine.make(") VALUES ( ", ")") 513 514 520 515 521 try: self.scratchDb.execute(sql) -
trunk/ippToPsps/jython/forcedgalaxybatch.py
r39079 r39094 147 147 photcode = self.scratchDb.getPhotcodeByName(photcodeName) 148 148 149 # XXX hard-wired platescale : 0.25 150 pltscale = 0.25 151 149 152 # This is going to need to join elsewhere to get all the fields? 150 153 # XforcedSummaryID, Ra, Dec, RaErr, DecErr … … 154 157 sqlLine.group("a." + filter[1] + "ippDetectID", "b.DET_ID") 155 158 sqlLine.group("a." + filter[1] + "stackImageID", "b.IMAGE_ID") 156 sqlLine.group("a." + filter[1] + "GalMajor", "b.MAJOR_AXIS ")157 sqlLine.group("a." + filter[1] + "GalMajorErr", "b.MAJOR_AXIS_ERR ")158 sqlLine.group("a." + filter[1] + "GalMinor", "b.MINOR_AXIS ")159 sqlLine.group("a." + filter[1] + "GalMinorErr", "b.MINOR_AXIS_ERR ")159 sqlLine.group("a." + filter[1] + "GalMajor", "b.MAJOR_AXIS * " + str(pltscale)) 160 sqlLine.group("a." + filter[1] + "GalMajorErr", "b.MAJOR_AXIS_ERR * " + str(pltscale)) 161 sqlLine.group("a." + filter[1] + "GalMinor", "b.MINOR_AXIS * " + str(pltscale)) 162 sqlLine.group("a." + filter[1] + "GalMinorErr", "b.MINOR_AXIS_ERR * " + str(pltscale)) 160 163 sqlLine.group("a." + filter[1] + "GalMag", "b.MAG") 161 164 sqlLine.group("a." + filter[1] + "GalMagErr", "b.MAG_ERR") -
trunk/ippToPsps/jython/forcedwarpbatch.py
r39065 r39094 269 269 sqlLine.group("photoZero", zpImage) 270 270 271 # photoColor -- how do I set this? it's also not set in stack meta272 271 sqlLine.group("ctype1", self.getKeyValue(header, 'CTYPE1')); 273 272 sqlLine.group("ctype2", self.getKeyValue(header, 'CTYPE2')); … … 482 481 sqlLine = sqlUtility("INSERT INTO " + pspsTableName + " (") 483 482 sqlLine.group("ippDetectID", "IPP_IDET") 484 sqlLine.group("flxR5", "APER_FLUX_3")485 sqlLine.group("flxR5Err", "APER_FLUX_ERR_3" )486 sqlLine.group("flxR5Std", "APER_FLUX_STDEV_3")487 sqlLine.group("flxR5Fill", "APER_FILL_3")488 sqlLine.group("flxR6", "APER_FLUX_4")489 sqlLine.group("flxR6Err", "APER_FLUX_ERR_4" )490 sqlLine.group("flxR6Std", "APER_FLUX_STDEV_4")491 sqlLine.group("flxR6Fill", "APER_FILL_4")492 sqlLine.group("flxR7", "APER_FLUX_5")493 sqlLine.group("flxR7Err", "APER_FLUX_ERR_5" )494 sqlLine.group("flxR7Std", "APER_FLUX_STDEV_5")495 sqlLine.group("flxR7Fill", "APER_FILL_5")483 sqlLine.group("flxR5", "APER_FLUX_3") 484 sqlLine.group("flxR5Err", "APER_FLUX_ERR_3" ) 485 sqlLine.group("flxR5Std", "APER_FLUX_STDEV_3") 486 sqlLine.group("flxR5Fill", "APER_FILL_3") 487 sqlLine.group("flxR6", "APER_FLUX_4") 488 sqlLine.group("flxR6Err", "APER_FLUX_ERR_4" ) 489 sqlLine.group("flxR6Std", "APER_FLUX_STDEV_4") 490 sqlLine.group("flxR6Fill", "APER_FILL_4") 491 sqlLine.group("flxR7", "APER_FLUX_5") 492 sqlLine.group("flxR7Err", "APER_FLUX_ERR_5" ) 493 sqlLine.group("flxR7Std", "APER_FLUX_STDEV_5") 494 sqlLine.group("flxR7Fill", "APER_FILL_5") 496 495 497 496 sql = sqlLine.makeRaw(") SELECT ", " FROM " + ippTableName) … … 501 500 self.logger.infoPair("adding objID, etc from", fMeasTableName) 502 501 sqlLine = sqlUtility("UPDATE " + pspsTableName + " as a, " + fMeasTableName + " as b SET ") 503 sqlLine.group("a.objID", "b.objID")502 sqlLine.group("a.objID", "b.objID") 504 503 sqlLine.group("a.uniquePspsFWid","b.uniquePspsFWid") 505 sqlLine.group("a.detectID","b.detectID") 506 sqlLine.group("a.ippObjID","b.ippObjID") 507 sqlLine.group("a.filterID","b.filterID") 508 sqlLine.group("a.surveyID","b.surveyID") 509 sqlLine.group("a.forcedWarpID","b.forcedWarpID") 510 sqlLine.group("a.randomWarpID","b.randomWarpID") 511 sqlLine.group("a.skycellID","b.skycellID") 512 sqlLine.group("a.dvoRegionID","b.dvoRegionID") 513 sqlLine.group("a.obsTime","b.obsTime") 514 sql = sqlLine.makeEquals("Where a.ippDetectID = b.ippDetectID") 504 sqlLine.group("a.detectID", "b.detectID") 505 sqlLine.group("a.ippObjID", "b.ippObjID") 506 sqlLine.group("a.filterID", "b.filterID") 507 sqlLine.group("a.surveyID", "b.surveyID") 508 sqlLine.group("a.forcedWarpID", "b.forcedWarpID") 509 sqlLine.group("a.randomWarpID", "b.randomWarpID") 510 sqlLine.group("a.tessID", "b.tessID") 511 sqlLine.group("a.projectionID", "b.projectionID") 512 sqlLine.group("a.skycellID", "b.skycellID") 513 sqlLine.group("a.dvoRegionID", "b.dvoRegionID") 514 sqlLine.group("a.obsTime", "b.obsTime") 515 sql = sqlLine.makeEquals("WHERE a.ippDetectID = b.ippDetectID") 515 516 self.scratchDb.execute(sql) 516 517 … … 539 540 sqlLine.group("lensObjSmearX12", "LENS_X12_SM_OBJ") 540 541 sqlLine.group("lensObjSmearX22", "LENS_X22_SM_OBJ") 541 sqlLine.group("lensObjSmearE1", "LENS_E1_SM_OBJ")542 sqlLine.group("lensObjSmearE2", "LENS_E2_SM_OBJ")542 sqlLine.group("lensObjSmearE1", "LENS_E1_SM_OBJ") 543 sqlLine.group("lensObjSmearE2", "LENS_E2_SM_OBJ") 543 544 sqlLine.group("lensObjShearX11", "LENS_X11_SH_OBJ") 544 545 sqlLine.group("lensObjShearX12", "LENS_X12_SH_OBJ") 545 546 sqlLine.group("lensObjShearX22", "LENS_X22_SH_OBJ") 546 sqlLine.group("lensObjShearE1", "LENS_E1_SH_OBJ")547 sqlLine.group("lensObjShearE2", "LENS_E2_SH_OBJ")547 sqlLine.group("lensObjShearE1", "LENS_E1_SH_OBJ") 548 sqlLine.group("lensObjShearE2", "LENS_E2_SH_OBJ") 548 549 sqlLine.group("lensPSFSmearX11", "LENS_X11_SM_PSF") 549 550 sqlLine.group("lensPSFSmearX12", "LENS_X12_SM_PSF") 550 551 sqlLine.group("lensPSFSmearX22", "LENS_X22_SM_PSF") 551 sqlLine.group("lensPSFSmearE1", "LENS_E1_SM_PSF")552 sqlLine.group("lensPSFSmearE2", "LENS_E2_SM_PSF")552 sqlLine.group("lensPSFSmearE1", "LENS_E1_SM_PSF") 553 sqlLine.group("lensPSFSmearE2", "LENS_E2_SM_PSF") 553 554 sqlLine.group("lensPSFShearX11", "LENS_X11_SH_PSF") 554 555 sqlLine.group("lensPSFShearX12", "LENS_X12_SH_PSF") 555 556 sqlLine.group("lensPSFShearX22", "LENS_X22_SH_PSF") 556 sqlLine.group("lensPSFShearE1", "LENS_E1_SH_PSF")557 sqlLine.group("lensPSFShearE2", "LENS_E2_SH_PSF")558 sqlLine.group("psfE1", "LENS_E1_PSF")559 sqlLine.group("psfE2", "LENS_E2_PSF")557 sqlLine.group("lensPSFShearE1", "LENS_E1_SH_PSF") 558 sqlLine.group("lensPSFShearE2", "LENS_E2_SH_PSF") 559 sqlLine.group("psfE1", "LENS_E1_PSF") 560 sqlLine.group("psfE2", "LENS_E2_PSF") 560 561 561 562 sql = sqlLine.makeRaw(") SELECT ", " FROM " + ippTableName) … … 565 566 self.logger.infoPair("inserting objID,etc from", fMeasTableName) 566 567 sqlLine = sqlUtility("UPDATE " + pspsTableName + " as a, " + fMeasTableName + " as b SET ") 567 sqlLine.group("a.objID","b.objID") 568 sqlLine.group("a.uniquePspsFWid","b.uniquePspsFWid") 569 sqlLine.group("a.detectID","b.detectID") 570 sqlLine.group("a.ippObjID","b.ippObjID") 571 sqlLine.group("a.filterID","b.filterID") 572 sqlLine.group("a.surveyID","b.surveyID") 573 sqlLine.group("a.forcedWarpID","b.forcedWarpID") 574 sqlLine.group("a.randomWarpID","b.randomWarpID") 575 sqlLine.group("a.skycellID","b.skycellID") 576 sqlLine.group("a.dvoRegionID","b.dvoRegionID") 577 sqlLine.group("a.obsTime","b.obsTime") 578 579 sql = sqlLine.makeEquals("Where a.ippDetectID = b.ippDetectID") 568 sqlLine.group("a.objID", "b.objID") 569 sqlLine.group("a.uniquePspsFWid", "b.uniquePspsFWid") 570 sqlLine.group("a.detectID", "b.detectID") 571 sqlLine.group("a.ippObjID", "b.ippObjID") 572 sqlLine.group("a.filterID", "b.filterID") 573 sqlLine.group("a.surveyID", "b.surveyID") 574 sqlLine.group("a.forcedWarpID", "b.forcedWarpID") 575 sqlLine.group("a.randomWarpID", "b.randomWarpID") 576 sqlLine.group("a.tessID", "b.tessID") 577 sqlLine.group("a.projectionID", "b.projectionID") 578 sqlLine.group("a.skycellID", "b.skycellID") 579 sqlLine.group("a.dvoRegionID", "b.dvoRegionID") 580 sqlLine.group("a.obsTime", "b.obsTime") 581 582 sql = sqlLine.makeEquals("WHERE a.ippDetectID = b.ippDetectID") 580 583 self.scratchDb.execute(sql) 581 584 -
trunk/ippToPsps/jython/stackbatch.py
r39072 r39094 275 275 zpImage = zp 276 276 277 detectionThreshold = detectionThreshold + zpImage -2.5 * math.log10(expTime)277 detectionThreshold = detectionThreshold + zpImage + 2.5 * math.log10(expTime) 278 278 279 279 # insert stack metadata into table … … 345 345 self.scratchDb.addRowCountColumn("StackObjectThin", "row") 346 346 self.logger.infoPair("Adding unique psps ids to", "StackObjectThin") 347 self.generate StackDetectRowIDsAndPspsUniqueIDs()347 self.generatePspsUniqueIDs() 348 348 self.logger.infoPair("Dropping row column from", "StackObjectThin table") 349 349 self.scratchDb.dropColumn("StackObjectThin", "row") … … 553 553 # self.scratchDb.createIndex(tablename, "objID") 554 554 555 # objid556 # uniquepsps id555 # objid 556 # uniquepsps id 557 557 # ippobjid 558 558 # randomstackobjid 559 # stackdetectrowid560 559 # primarydetection 561 # bestdetection560 # bestdetection 562 561 563 562 #g / r / i /z / y … … 951 950 maxRadius = 5 952 951 952 # XXX : by setting these to -999 here, the values are then 953 # modified downstream to apply exposure time and zero point 954 # factors (or platescale terms). this means they will not 955 # have the correct -999 values in the end. 956 953 957 # properly -999 these to start with. the default should take 954 958 # care of this, but does not? … … 1286 1290 self.scratchDb.execute(sql) 1287 1291 1288 def generate StackDetectRowIDsAndPspsUniqueIDs(self):1292 def generatePspsUniqueIDs(self): 1289 1293 sql = "UPDATE StackObjectThin set uniquePspsSTid = (("+str(self.batchID)+"*1000000000 ) + row)" 1290 1294 self.scratchDb.execute(sql) … … 1349 1353 self.scratchDb.addColumn(table, filter + "haveData", "tinyint") 1350 1354 1351 fields = "objID, ippObjID, randomStackObjID, primaryDetection, bestDetection, uniquePspsSTID, StackDetectRowID,"1355 fields = "objID, ippObjID, randomStackObjID, primaryDetection, bestDetection, uniquePspsSTID, " 1352 1356 1353 1357 for i in range(len(self.filters)):
Note:
See TracChangeset
for help on using the changeset viewer.
