From a9fe22ecf1487ec8ae6f3bb332b6ec84f434283d Mon Sep 17 00:00:00 2001 From: SimpleArt <71458112+SimpleArt@users.noreply.github.com> Date: Fri, 27 Nov 2020 16:24:20 -0500 Subject: [PATCH] Fixed minor bug --- src/parent_selection/parent_selection_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parent_selection/parent_selection_methods.py b/src/parent_selection/parent_selection_methods.py index a095c52..88f000a 100644 --- a/src/parent_selection/parent_selection_methods.py +++ b/src/parent_selection/parent_selection_methods.py @@ -50,7 +50,7 @@ def compute_parent_amount(selection_method): def new_method(ga): parent_amount = max(2, len(ga.population)*ga.parent_ratio) - ga.parent_selection_impl(ga, parent_amount) + selection_method(ga, parent_amount) return new_method