def copy(self, g): """ Copy the contents to the destination g :param g: the GTree genome destination """ GenomeBase.copy(self, g) GTreeBase.copy(self, g)
def __repr__(self): """ Return a string representation of Genome """ ret = GenomeBase.__repr__(self) ret += GTreeBase.__repr__(self) return ret
def __repr__(self): """ Return a string representation of Genome """ ret = GenomeBase.__repr__(self) ret += GTreeBase.__repr__(self) ret += "\n- GTreeGP\n" ret += "\tExpression: %s\n" % self.getPreOrderExpression() return ret