From 7a5d27e2bbadbc33e89ac529fdba8dbba4a90d06 Mon Sep 17 00:00:00 2001 From: Demetry Pascal Date: Sun, 14 Apr 2024 16:09:46 +0300 Subject: [PATCH] update to 6.9.2 --- README.md | 3 +++ geneticalgorithm2/selections.py | 2 +- version.txt | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f869d6c..d16eb09 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ https://pasaopasen.github.io/geneticalgorithm2/ - [Updates information](#updates-information) - [**Future**](#future) - [**TODO firstly**](#todo-firstly) + - [6.9.2 bugfixes](#692-bugfixes) - [6.9.1 refactor](#691-refactor) - [6.9.0 reborn](#690-reborn) - [6.8.7 minor update](#687-minor-update) @@ -163,6 +164,8 @@ pip install geneticalgorithm2[full] ## **TODO firstly** - Remove old style mentions from README +## 6.9.2 bugfixes + ## 6.9.1 refactor - Finally move `function_timeout` and `function` to `run()` method and deprecate its usage in init() diff --git a/geneticalgorithm2/selections.py b/geneticalgorithm2/selections.py index 7bdf674..f3650e0 100644 --- a/geneticalgorithm2/selections.py +++ b/geneticalgorithm2/selections.py @@ -129,7 +129,7 @@ def func(scores: array1D, parents_count): else: f = np.maximum(epsilon, 1 + (f - average)/(2*sigma)) - return Selection.__roulette(f, parents_count) + return roulette(f, parents_count) return func diff --git a/version.txt b/version.txt index b81ba51..054306a 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -6.9.1 \ No newline at end of file +6.9.2 \ No newline at end of file