Changeset 31365
- Timestamp:
- Apr 25, 2011, 9:39:26 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/detectionbatch.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/detectionbatch.py
r31357 r31365 50 50 self.startY = 0 51 51 self.endY = 8 52 53 #self.startX = 6 54 #self.endX = 7 55 #self.startY = 7 56 #self.endY = 8 52 57 53 58 self.obsTime = float(self.header['MJD-OBS']) + (float(self.header['EXPTIME']) / 172800.0) … … 556 561 self.updateDvoIDs("Detection_" + ota, sourceIDs[ota], imageIDs[ota]) 557 562 563 self.scratchDb.reportAndDeleteRowsWithNULLS("Detection_" + ota, "objID") 564 self.updateImageID("Detection_" + ota, x, y) 565 558 566 # check we have something in this Detection table 559 567 if self.scratchDb.getRowCount("Detection_" + ota) < 1: … … 561 569 continue; 562 570 563 self.scratchDb.reportAndDeleteRowsWithNULLS("Detection_" + ota, "objID")564 self.updateImageID("Detection_" + ota, x, y)565 566 571 # update ImageMeta with count of detections for this OTA and photoCodeID 567 572 sql = "UPDATE ImageMeta_" + ota + " SET nDetect = %d, photoCalID = %d" % (self.scratchDb.getRowCount("Detection_" + ota), self.scratchDb.getPhotoCalID(header['SOURCEID'], header['IMAGEID'])) … … 580 585 otaCount = otaCount + 1 581 586 587 # if we only have one table export, i.e. FrameMeta, then get out of here 588 if len(self.tablesToExport) == 1: 589 590 self.logger.error("No tables to export") 591 return False 592 582 593 self.setMinMaxObjID(tables) 583 594 … … 630 641 file = gpc1Db.getCameraStageSmf(camID) 631 642 #file = "detdemo.fits" 632 detectionBatch = DetectionBatch(logger, camID, file, True)633 634 if notdetectionBatch.alreadyProcessed():643 detectionBatch = DetectionBatch(logger, camID, file, False) 644 645 if detectionBatch.alreadyProcessed(): 635 646 636 647 detectionBatch.createEmptyPspsTables() … … 640 651 detectionBatch.writeBatchManifest() 641 652 detectionBatch.reportNullsInAllPspsTables(False) 642 #detectionBatch.createTarball()643 #detectionBatch.publishToDatastore()653 detectionBatch.createTarball() 654 detectionBatch.publishToDatastore() 644 655 645 656 i = i+1
Note:
See TracChangeset
for help on using the changeset viewer.
