Changeset 1139 for framspy/evolalg/population/frams_population.py
- Timestamp:
- 05/08/21 12:42:58 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/evolalg/population/frams_population.py
r1113 r1139 4 4 5 5 class FramsPopulation(FramsStep): 6 def __init__(self, frams_lib, genetic_format, pop_size, commands=None): 6 def __init__(self, frams_lib, genetic_format, pop_size, commands=None, *args, **kwargs): 7 7 8 if commands is None: 8 9 commands = [] 9 super().__init__(frams_lib, commands )10 super().__init__(frams_lib, commands,*args, **kwargs) 10 11 11 12 self.pop_size = pop_size 12 13 self.genetic_format = genetic_format 13 14 14 def call(self, *args, **kwargs): 15 def call(self, population, *args, **kwargs): 16 super(FramsPopulation, self).call(population) 15 17 return [Individual(self.frams.getSimplest(self.genetic_format)) for _ in range(self.pop_size)] 16 18
Note: See TracChangeset
for help on using the changeset viewer.