From 99447183b566b01b2086fc1740aa6e9d9552521c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Ferran=20Pousa?= Date: Mon, 25 Sep 2023 19:43:38 +0200 Subject: [PATCH] Formatting --- optimas/explorations/base.py | 7 ++----- optimas/gen_functions.py | 2 +- optimas/generators/base.py | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/optimas/explorations/base.py b/optimas/explorations/base.py index 51c20233..85083ef8 100644 --- a/optimas/explorations/base.py +++ b/optimas/explorations/base.py @@ -9,9 +9,6 @@ from libensemble.tools import save_libE_output, add_unique_random_streams from libensemble.alloc_funcs.start_only_persistent import only_persistent_gens from libensemble.executors.mpi_executor import MPIExecutor -from libensemble.resources.resources import Resources -from libensemble.executors.executor import Executor -from libensemble.logger import LogConfig from optimas.generators.base import Generator from optimas.evaluators.base import Evaluator @@ -88,7 +85,7 @@ def run( n_evals: Optional[int] = None ) -> None: """Run the exploration. - + Parameters ---------- n_evals : int, optional @@ -249,4 +246,4 @@ def _create_alloc_specs(self) -> None: 'user': { 'async_return': self.run_async } - } \ No newline at end of file + } diff --git a/optimas/gen_functions.py b/optimas/gen_functions.py index 4c04fb1b..e13065b3 100644 --- a/optimas/gen_functions.py +++ b/optimas/gen_functions.py @@ -38,7 +38,7 @@ def persistent_generator(H, persis_info, gen_specs, libE_info): ps = PersistentSupport(libE_info, EVAL_GEN_TAG) - # Maximum number of total evaluations to generate. + # Maximum number of total evaluations to generate. max_evals = gen_specs['user']['max_evals'] # Number of points to generate initially. diff --git a/optimas/generators/base.py b/optimas/generators/base.py index 4281123f..77abe380 100644 --- a/optimas/generators/base.py +++ b/optimas/generators/base.py @@ -115,7 +115,7 @@ def gpu_id(self): @property def dedicated_resources(self): return self._dedicated_resources - + @property def n_trials(self): return len(self._trials)