IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 5, 2013, 6:16:49 AM (13 years ago)
Author:
eugene
Message:

fix test for imageID in dvo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130307/ippToPsps/jython/detectionbatch.py

    r35352 r35369  
    681681        # store these for later
    682682        self.imageIDs[chipname] = header['IMAGEID']
     683        self.sourceIDs[chipname] = header['SOURCEID']
    683684           
    684685        # populate ImageMeta
     
    702703        # dictionary objects to hold imageIDs for later
    703704        self.imageIDs = {}
     705        self.sourceIDs = {}
    704706
    705707        # loop through all OTAs and populate ImageMeta extensions
     
    791793
    792794        # does this chip exist in the DVO image table (if NOT, then skip it)
    793         if not self.scratchDb.haveThisChip(self.imageIDs[chipname]):
     795        if not self.scratchDb.haveThisChip(self.imageIDs[chipname], self.sourceIDs[chipname]):
    794796            self.logger.info("| %5s |            ------------- Chip not in DVO : rejecting ------------                    |" % chipname)
    795797            return False
Note: See TracChangeset for help on using the changeset viewer.