Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFP committed Sep 25, 2023
1 parent 09a9a05 commit 9944718
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions optimas/explorations/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -88,7 +85,7 @@ def run(
n_evals: Optional[int] = None
) -> None:
"""Run the exploration.
Parameters
----------
n_evals : int, optional
Expand Down Expand Up @@ -249,4 +246,4 @@ def _create_alloc_specs(self) -> None:
'user': {
'async_return': self.run_async
}
}
}
2 changes: 1 addition & 1 deletion optimas/gen_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion optimas/generators/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9944718

Please sign in to comment.