예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
0
파일: G1DList.py 프로젝트: tomerf/Pyevolve
   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)
예제 #4
0
   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[:]
예제 #5
0
    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)
예제 #6
0
    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][:]
예제 #7
0
   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][:]
예제 #8
0
   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)
예제 #9
0
   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)