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)))
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
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)))
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