Opted for single _ instead of double _

This commit is contained in:
SimpleArt
2020-11-22 17:55:58 -05:00
parent 7c29f04807
commit c8985f9872
6 changed files with 18 additions and 18 deletions

View File

@ -1,6 +1,6 @@
import random
def append_children_from_mating_pool(crossover_method):
def append_children_to_next_population(crossover_method):
"""Appends the new chromosomes to the next population."""
return lambda ga:\
ga.population.append_children(
@ -29,11 +29,11 @@ def values_to_genes(crossover_method):
class Crossover_Methods:
# Private method decorators, see above.
def __append_children_from_mating_pool(crossover_method):
return append_children_from_mating_pool(crossover_method)
def __genes_to_chromosome(crossover_method):
def _append_children_to_next_population(crossover_method):
return append_children_to_next_population(crossover_method)
def _genes_to_chromosome(crossover_method):
return values_to_chromosome(crossover_method)
def __values_to_genes(crossover_method):
def _values_to_genes(crossover_method):
return values_to_genes(crossover_method)