From e42db3d927db73177ab6cf46e1d1e3eb83162b35 Mon Sep 17 00:00:00 2001 From: Oskar Taubert Date: Mon, 23 Oct 2023 15:21:44 +0200 Subject: [PATCH] removed cheating, normal log levels --- tests/test_cmaes.py | 1 - tests/test_propulator_sphere.py | 4 ++-- tests/test_pso.py | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_cmaes.py b/tests/test_cmaes.py index 8d721fd8..2285ef0d 100644 --- a/tests/test_cmaes.py +++ b/tests/test_cmaes.py @@ -32,7 +32,6 @@ def test_PSO(): """ Test single worker using Propulator to optimize sphere using a PSO propagator. """ - return rng = random.Random(42) # Separate random number generator for optimization. limits = { "a": (-5.12, 5.12), diff --git a/tests/test_propulator_sphere.py b/tests/test_propulator_sphere.py index c63a7f7c..d6fae54e 100644 --- a/tests/test_propulator_sphere.py +++ b/tests/test_propulator_sphere.py @@ -40,7 +40,7 @@ def test_Propulator(): } with tempfile.TemporaryDirectory() as checkpoint_path: set_logger_config( - level=logging.DEBUG, + level=logging.INFO, log_file=checkpoint_path + "/propulate.log", log_to_stdout=True, log_rank=False, @@ -66,7 +66,7 @@ def test_Propulator(): ) # Run optimization and print summary of results. - propulator.propulate(debug=2) + propulator.propulate() propulator.summarize() best = min(propulator.population, key=attrgetter("loss")) diff --git a/tests/test_pso.py b/tests/test_pso.py index b679a900..437384c3 100644 --- a/tests/test_pso.py +++ b/tests/test_pso.py @@ -33,7 +33,6 @@ def test_PSO(): """ Test single worker using Propulator to optimize sphere using a PSO propagator. """ - return rng = random.Random(42) # Separate random number generator for optimization. limits = { "a": (-5.12, 5.12),