From de7c1fb2dd7ed96280391d6a3fb98192c515129a Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Sun, 30 Jun 2024 17:15:45 +0200 Subject: [PATCH] fixed styling errors --- src/starbench/__init__.py | 2 +- src/starbench/core.py | 18 ------------------ test/test_starbench.py | 2 +- 3 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/starbench/__init__.py b/src/starbench/__init__.py index 4c3ad0b..5b7a097 100644 --- a/src/starbench/__init__.py +++ b/src/starbench/__init__.py @@ -1,2 +1,2 @@ # from .main import starbench_cmake_app -# __all__ = [starbench_cmake_app] \ No newline at end of file +# __all__ = [starbench_cmake_app] diff --git a/src/starbench/core.py b/src/starbench/core.py index 3f71452..416883c 100755 --- a/src/starbench/core.py +++ b/src/starbench/core.py @@ -272,21 +272,3 @@ class CommandPerfEstimator(): # (false positive) pylint: disable=function-redef mean_duration, num_runs = self.get_run_mean_duration() print(f'mean duration : {mean_duration:.3f} s ({num_runs} runs)') return mean_duration - - -# def test_starbencher(): -# if False: -# stop_condition = StopAfterSingleRun() -# # stop_condition = StopWhenConverged(max_error=0.0001) -# bench = StarBencher(run_command=['sleep', '0.1415927'], num_cores_per_run=1, num_parallel_runs=2, max_num_cores=2, stop_condition=stop_condition) -# mean_duration = bench.run() -# print(mean_duration) - -# if False: -# bench = StarBencher(run_command=['ls', '/tmp'], num_cores_per_run=1, num_parallel_runs=2, max_num_cores=2, max_error=0.0001) -# mean_duration = bench.run() -# print(mean_duration) -# pass - -# end of starbencher - diff --git a/test/test_starbench.py b/test/test_starbench.py index a57739a..718850f 100644 --- a/test/test_starbench.py +++ b/test/test_starbench.py @@ -9,7 +9,7 @@ class StarbenchTestCase(unittest.TestCase): logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') - def setUp(self) -> None: + def setUp(self) -> None: # pylint: disable=useless-parent-delegation return super().setUp() def test_mamul1_benchmark(self):