(self, other)
return True if cond1 and cond2 and cond3 else False
Compares one chromosome with another
Compares one chromosome with another
Compares one chromosome with another
def __eq__(self, other):
        """ Compares one chromosome with another """
        cond1 = (self.genomeList == other.genomeList)
        cond2 = (self.height == other.height)
        cond3 = (self.width == other.width)
        return True if cond1 and cond2 and cond3 else False
def __eq__ ( self , other ) : cond1 = ( self . genomeList == other . genomeList ) cond2 = ( self . height == other . height ) cond3 = ( self . width == other . width ) return True if cond1 and cond2 and cond3 else False