예제 #1
0
파일: match.py 프로젝트: askeys/smac
 def _match(self):
     """Internal function used to perform the dirty work of matching the objects type-to-type"""
     try:
         for type1 in self.desc:
             self.match[type1] = libsmac.matchfundist(self.desc[type1], self.desc2[type1])
         self.dirtymatch = False
     except KeyError, e:
         raise CompareError(self, "FourierCompare._match Format data does not contain the same type information %s: %s. \n perhaps you meant to use multimatch?\n" %
                            (str(self.format), str(self.format2)))
예제 #2
0
파일: match.py 프로젝트: askeys/smac
 def _multimatch(self):
     """internal function for calculating the multimatch"""
     #so default outputs still work
     self.Mmatch = dict(dict())
     for type1, descData in self.desc.iteritems():
         tmatchdict = {}
         for type2, descData2 in self.desc2.iteritems():
             tmatchdict[type2] = libsmac.matchfundist(self.desc[type1],self.desc2[type2])
         self.Mmatch[type1] = tmatchdict
         del tmatchdict
     self.dirtymatch = False
예제 #3
0
파일: match.py 프로젝트: ikrist/smac
 def _match(self):
     """Internal function used to perform the dirty work of matching the objects type-to-type"""
     try:
         for type1 in self.desc:
             self.match[type1] = libsmac.matchfundist(
                 self.desc[type1], self.desc2[type1])
         self.dirtymatch = False
     except KeyError, e:
         raise CompareError(
             self,
             "FourierCompare._match Format data does not contain the same type information %s: %s. \n perhaps you meant to use multimatch?\n"
             % (str(self.format), str(self.format2)))
예제 #4
0
파일: match.py 프로젝트: ikrist/smac
 def _multimatch(self):
     """internal function for calculating the multimatch"""
     #so default outputs still work
     self.Mmatch = dict(dict())
     for type1, descData in self.desc.iteritems():
         tmatchdict = {}
         for type2, descData2 in self.desc2.iteritems():
             tmatchdict[type2] = libsmac.matchfundist(
                 self.desc[type1], self.desc2[type2])
         self.Mmatch[type1] = tmatchdict
         del tmatchdict
     self.dirtymatch = False