Changeset 39153
- Timestamp:
- Nov 17, 2015, 4:59:36 PM (11 years ago)
- Location:
- trunk/ippToPsps/jython
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/dvo.py
r39152 r39153 676 676 includes purging detections outside sky area 677 677 ''' 678 def nativeIngestDetections(self, boxId, boxDim ):678 def nativeIngestDetections(self, boxId, boxDim, myBatchType): 679 679 680 680 # clear the 'ingested' field for all boxes owned by this host … … 709 709 710 710 # ST and FW need to use just a skycell 711 if self.batchType == "ST" :711 if myBatchType == "ST" : 712 712 myBorder = self.skychunk.BORDER_SKYCELL 713 if self.batchType == "FW" :713 if myBatchType == "FW" : 714 714 myBorder = self.skychunk.BORDER_SKYCELL 715 715 … … 796 796 else: 797 797 cmd += " -photcode-start 12000 -photcode-end 12500" 798 ## if (useFW == 1): 799 ## if (self.config.camera == "simtest"): 800 ## print "need photcodes for non gpc1 camera" 801 ## else: 802 ## print "need photcode for warp for gpc1 camera, default is no selection, should work, could be slow" 798 799 if (useST + useP2 + useDF + useFW > 1): 800 self.logger.errorPair("multiple batch types in a run", "NOW ILLEGAL") 801 os._exit(5) 803 802 804 803 ## dvopsps can take a very long time. try 2 or 3 times to re-establish communication with the db before proceeding? -
trunk/ippToPsps/jython/loader.py
r39008 r39153 172 172 if (batchType == "P2" or batchType == "ST" or batchType =="DF" or batchType == "FW"): 173 173 if self.config.resetDvo or not self.ippToPspsDb.isBoxIngested(boxId, self.scratchDb.dbHost): 174 if not self.dvo.nativeIngestDetections(boxId, boxDim ):174 if not self.dvo.nativeIngestDetections(boxId, boxDim, batchType): 175 175 self.logger.error("Unable to ingest detections with nativeIngest") 176 176 return False
Note:
See TracChangeset
for help on using the changeset viewer.
