Commit bb8006f9 authored by David A.. Werner's avatar David A.. Werner
Browse files

Corner case bugifx

parent 41b732e7
......@@ -252,6 +252,7 @@ class EvolutionSimulator(object):
idxs = rng.choice(len(unfit_manducas), num_random, replace=False)
randomly_selected_manducas = list(unfit_manducas[idxs])
else:
idxs = []
randomly_selected_manducas = []
# Pick the rest randomly, weighted by fitness
remaining_manducas = self.evolution_parameters.max_population - num_fittest - num_random
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment