Commits

Giovanni Marco Dall'Olio committed 410cbdc

FIX: minor fixes

Comments (0)

Files changed (1)

src/GoogleQueryGenome.py

 """
 """
 import pyevolve
+from pyevolve import Consts
+import random
 
 
 class GoogleQueryChromosome(list):
 #
        if not cloning:
            self.initializator.set(googleQueryInitializer)
-#           self.mutator.set(Consts.CDefG2DListMutator)
-#           self.crossover.set(Consts.CDefG2DListCrossover)
+           self.mutator.set(Consts.CDefG2DListMutator)
+           self.crossover.set(Consts.CDefG2DListCrossover)
 
     def clearList(self):
        self.genomeList = [GoogleQueryChromosome([None])*self.seqlength, GoogleQueryChromosome([None])*self.seqlength]
         rep += str(self.genomeList[0])
         rep += "CHROMOSOME2: "
         rep += str(self.genomeList[1])
-#        rep = term.render("${BOLD}CHROMOSOME1:${NORMAL}"),
-#        rep += term.render(self.genomeList[0])
-#        rep += term.render("${BOLD}CHROMOSOME2:${NORMAL}"),
-#        rep += term.render(self.genomeList[1])
         return (rep)
         
 def googleQueryInitializer(genome, **args):
 
 
 
-
+def test():
+    pass