Changeset 35174
- Timestamp:
- Feb 16, 2013, 3:03:50 PM (13 years ago)
- Location:
- trunk/ippToPsps/jython
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/batch.py
r35097 r35174 544 544 # for OB, this imports object data from DVO 545 545 if not self.importIppTables(): 546 if self.batchType == "OB": 547 self.logger.errorPair("skipping this batch", "no dvo tables for this region") 548 self.ippToPspsDb.updateProcessed(self.batchID, 1) 549 return True 550 546 551 self.logger.errorPair("Aborting this batch", "could not import IPP tables") 547 552 self.ippToPspsDb.updateProcessed(self.batchID, -1) -
trunk/ippToPsps/jython/dvo.py
r35097 r35174 263 263 264 264 # get paths for this region for the file types we are interested in 265 paths = [] 266 for fileType in self.ingestFileTypes: 267 paths.append(self.skychunk.dvoLocation + "/" + regionPath + "." + fileType) 265 # XXX ipptopsps cannot check files -- it does not know where they are 266 ## paths = [] 267 ## for fileType in self.ingestFileTypes: 268 ## paths.append(self.skychunk.dvoLocation + "/" + regionPath + "." + fileType) 268 269 269 270 # check for the existence of all interested file types 270 skipThisRegion = False 271 for path in paths: 272 if not os.path.isfile(path): 273 skipThisRegion = True 274 break 275 276 if skipThisRegion: continue 271 # XXX ipptopsps cannot check files -- it does not know where they are 272 ## skipThisRegion = False 273 ## for path in paths: 274 ## if not os.path.isfile(path): 275 ## skipThisRegion = True 276 ## break 277 278 ## if skipThisRegion: continue 277 279 278 280 # ok, have real, populated files so add this region to the list … … 281 283 282 284 # if we have already imported up-to-date versions of all interested files, then we skip this region 283 alreadyIngested = True 284 for path in paths: 285 if not self.scratchDb.alreadyImportedThisDvoTable(path): 286 alreadyIngested = False 287 break 288 285 ## alreadyIngested = True 286 ## for path in paths: 287 ## if not self.scratchDb.alreadyImportedThisDvoTable(path): 288 ## alreadyIngested = False 289 ## break 290 291 alreadyIngested = False 289 292 if alreadyIngested: 290 293 self.regionsAlreadyIngested.append(regionPath) … … 299 302 300 303 # check if we have out-of-date versions of any interested files, if so, add region to the purge list 301 outOfDate = False 302 for path in paths: 303 if self.scratchDb.haveOutOfDateVersionOfThisDvoTable(path): 304 outOfDate = True 305 break 306 307 if outOfDate: self.regionsIngestedButOutOfDate.append(regionPath) 304 ## outOfDate = False 305 ## for path in paths: 306 ## if self.scratchDb.haveOutOfDateVersionOfThisDvoTable(path): 307 ## outOfDate = True 308 ## break 309 ## 310 ## if outOfDate: self.regionsIngestedButOutOfDate.append(regionPath) 311 312 print "using region: ", regionPath 308 313 309 314 self.regionsToIngest.append(regionPath) … … 420 425 421 426 size = 0.0 427 return size 428 422 429 for region in regions: 423 430 self.logger.infoPair("sizes for region", region) 424 431 # get combined size of all interested files 425 432 for fileType in self.ingestFileTypes: 433 print "trying ", fileType 426 434 size = size + self.getDiskSize(self.skychunk.dvoLocation + "/" + region + "." + fileType) 427 435 # EAM TEST I/O -
trunk/ippToPsps/jython/loader.py
r35097 r35174 198 198 # impact of mysql insertion 199 199 if not self.ippToPspsDb.isBoxIngested(boxId): 200 self.dvoDetections.nativeIngestDetections(boxId, boxDim['RA'], boxDim['DEC'], boxSize SansBorder)200 self.dvoDetections.nativeIngestDetections(boxId, boxDim['RA'], boxDim['DEC'], boxSizeWithBorder) 201 201 202 202 useFullTables = 1 -
trunk/ippToPsps/jython/objectbatch.py
r35170 r35174 77 77 else: 78 78 self.dvoObjects.ingestRegion(self.region) 79 80 cptTableName = self.scratchDb.getDbFriendlyTableName(self.region + ".cpt") 81 if not self.scratchDb.tableExists(cptTableName): 82 return False 79 83 80 84 return True
Note:
See TracChangeset
for help on using the changeset viewer.
