Skip to content

Commit

Permalink
Edit warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedfgad committed Nov 8, 2023
1 parent c2af4da commit a32eed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygad/pygad.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ def __init__(self,
# Validate delay_after_gen
if type(delay_after_gen) in GA.supported_int_float_types:
if not self.suppress_warnings:
warnings.warn("The 'delay_after_gen' parameter is deprecated starting from PyGAD 3.3.0. To pause the evolution after each generation, assign a callback function/method to the 'on_generation' parameter to adds some time delay.")
warnings.warn("The 'delay_after_gen' parameter is deprecated starting from PyGAD 3.3.0. To delay or pause the evolution after each generation, assign a callback function/method to the 'on_generation' parameter to adds some time delay.")
if delay_after_gen >= 0.0:
self.delay_after_gen = delay_after_gen
else:
Expand Down

0 comments on commit a32eed8

Please sign in to comment.