def _oneGeneration(self):
     Coevolution._oneGeneration(self)
     # change roles between parasites and hosts
     tmp = self.pop
     self.pop = self.parasitePop
     self.parasitePop = tmp
Exemple #2
0
 def _oneGeneration(self):
     Coevolution._oneGeneration(self)
     # change roles between parasites and hosts
     tmp = self.pop
     self.pop = self.parasitePop
     self.parasitePop = tmp
Exemple #3
0
 def _oneGeneration(self):
     Coevolution._oneGeneration(self)
     # change the main pop
     self.pops[self.mainpop] = self.pop
     self.mainpop = self.generation % self.numPops
     self.pop = self.pops[self.mainpop]