def copy(self, g): """ Copy the contents to the destination g :param g: the GTreeGP genome destination """ GenomeBase.copy(self, g) GTreeBase.copy(self, g)
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 copy(self, g): """ Copy genome to 'g' Example: >>> genome_origin.copy(genome_destination) :param g: the destination G1DList instance """ GenomeBase.copy(self, g) G1DBase.copy(self, g)
def copy(self, g): """ Copy genome to 'g' Example: >>> genome_origin.copy(genome_destination) :param g: the destination G1DList instance """ GenomeBase.copy(self, g) g.listSize = self.listSize g.genomeList = self.genomeList[:]
def copy(self, g): """ Copy genome to 'g' Example: >>> genome_origin.copy(genome_destination) :param g: the destination G2DCartesian instance """ GenomeBase.copy(self, g) g.expressionNodes = self.expressionNodes.copy() g.reevaluate = self.reevaluate g.nodes = copy.deepcopy(self.nodes)
def copy(self, g): """ Copy genome to 'g' Example: >>> genome_origin.copy(genome_destination) :param g: the destination G2DList instance """ GenomeBase.copy(self, g) g.height = self.height g.width = self.width for i in xrange(self.height): g.genomeList[i] = self.genomeList[i][:]
def copy(self, g): """ Copy genome to 'g' Example: >>> g1 = G1DBinaryString(2) >>> g1.append(0) >>> g1.append(1) >>> g2 = G1DBinaryString(2) >>> g1.copy(g2) >>> g2[1] 1 :param g: the destination genome """ GenomeBase.copy(self, g) G1DBase.copy(self, g)