From 44683c7fae398130ee8b84b40f8ac7e4af42a9bd Mon Sep 17 00:00:00 2001 From: SimpleArt <71458112+SimpleArt@users.noreply.github.com> Date: Sat, 26 Dec 2020 15:53:45 -0500 Subject: [PATCH] Fixed decorator name issue --- src/termination_point/termination_methods.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/termination_point/termination_methods.py b/src/termination_point/termination_methods.py index 0cdb3fb..4098936 100644 --- a/src/termination_point/termination_methods.py +++ b/src/termination_point/termination_methods.py @@ -17,6 +17,7 @@ def _add_by_fitness_goal(termination_impl): # Check other termination methods return termination_impl(ga) + new_method.__name__ = termination_impl.__name__ return new_method @@ -32,6 +33,7 @@ def _add_by_generation_goal(termination_impl): # Check other termination methods return termination_impl(ga) + new_method.__name__ = termination_impl.__name__ return new_method @@ -53,6 +55,7 @@ def _add_by_tolerance_goal(termination_impl): # Check other termination methods return termination_impl(ga) + new_method.__name__ = termination_impl.__name__ return new_method