Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .pygad import * # Relative import.

__version__ = "3.0.0"
__version__ = "3.0.1"
11 changes: 11 additions & 0 deletions docs/source/Footer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,17 @@ Release Date 8 April 2023
operators roulette wheel and stochastic universal.
https://github.com/ahmedfgad/GeneticAlgorithmPython/pull/168

.. _pygad-301:

PyGAD 3.0.1
-----------

Release Date 20 April 2023

1. Fix an issue with passing user-defined function/method for parent
selection.
https://github.com/ahmedfgad/GeneticAlgorithmPython/issues/179

PyGAD Projects at GitHub
========================

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Ahmed Fawzy Gad'

# The full version, including alpha/beta/rc tags
release = '3.0.0'
release = '3.0.1'

master_doc = 'index'

Expand Down
6 changes: 3 additions & 3 deletions pygad.py
Original file line number Diff line number Diff line change
Expand Up @@ -1747,9 +1747,9 @@ def run(self):

# Selecting the best parents in the population for mating.
if callable(self.parent_selection_type):
self.last_generation_parents, self.last_generation_parents_indices = self.select_parents(self,
self.last_generation_fitness,
self.num_parents_mating, self)
self.last_generation_parents, self.last_generation_parents_indices = self.select_parents(self.last_generation_fitness,
self.num_parents_mating,
self)
if not type(self.last_generation_parents) is numpy.ndarray:
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)))
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)))
Expand Down