Skip to content

Commit aca9f54

Browse files
committed
Merge remote-tracking branch 'origin/master' into github-actions
2 parents a1ab6aa + 7dac6f0 commit aca9f54

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

docs/source/Footer.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,17 @@ Release Date 8 April 2023
12791279
operators roulette wheel and stochastic universal.
12801280
https://github.com/ahmedfgad/GeneticAlgorithmPython/pull/168
12811281

1282+
.. _pygad-301:
1283+
1284+
PyGAD 3.0.1
1285+
-----------
1286+
1287+
Release Date 20 April 2023
1288+
1289+
1. Fix an issue with passing user-defined function/method for parent
1290+
selection.
1291+
https://github.com/ahmedfgad/GeneticAlgorithmPython/issues/179
1292+
12821293
PyGAD Projects at GitHub
12831294
========================
12841295

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'Ahmed Fawzy Gad'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '3.0.0'
25+
release = '3.0.1'
2626

2727
master_doc = 'index'
2828

pygad/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from .pygad import * # Relative import.
22

3-
__version__ = "3.0.0"
3+
__version__ = "3.0.1"

pygad/pygad.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,9 +1747,9 @@ def run(self):
17471747

17481748
# Selecting the best parents in the population for mating.
17491749
if callable(self.parent_selection_type):
1750-
self.last_generation_parents, self.last_generation_parents_indices = self.select_parents(self,
1751-
self.last_generation_fitness,
1752-
self.num_parents_mating, self)
1750+
self.last_generation_parents, self.last_generation_parents_indices = self.select_parents(self.last_generation_fitness,
1751+
self.num_parents_mating,
1752+
self)
17531753
if not type(self.last_generation_parents) is numpy.ndarray:
17541754
self.logger.error("The type of the iterable holding the selected parents is expected to be (numpy.ndarray) but {last_generation_parents_type} found.".format(last_generation_parents_type=type(self.last_generation_parents)))
17551755
raise TypeError("The type of the iterable holding the selected parents is expected to be (numpy.ndarray) but {last_generation_parents_type} found.".format(last_generation_parents_type=type(self.last_generation_parents)))

0 commit comments

Comments
 (0)