Commits

Giovanni Marco Dall'Olio committed 34bb137

FIX: correctly setting seqlength to GoogleQueryGenome object

  • Participants
  • Parent commits 410cbdc

Comments (0)

Files changed (1)

File src/GoogleQueryGenome.py

        """
        """
        pyevolve.GenomeBase.GenomeBase.__init__(self)
-       self.seqlength = seqlength
+       self.setParams(seqlength = seqlength)
        self.genomeList = [GoogleQueryChromosome([None])*seqlength, GoogleQueryChromosome([None])*seqlength]
 #
        if not cloning:
     """
     initialize google query genome
     """
-    chr1 = [random.randint(0, 255) for n in xrange(genome.seqlength)]
-    chr2 = [random.randint(0, 255) for n in xrange(genome.seqlength)]
+    chr1 = [random.randint(0, 255) for n in xrange(genome.getParam("seqlength"))]
+    chr2 = [random.randint(0, 255) for n in xrange(genome.getParam("seqlength"))]
     genome.genomeList = [chr1, chr2]