Skip to content

Commit d023b76

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9ab099e commit d023b76

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

optimas/evaluators/function_evaluator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ class FunctionEvaluator(Evaluator):
2929
"""
3030

3131
def __init__(
32-
self, function: Callable, create_evaluation_dirs: bool = False, redirect_logs_to_file: bool = False
32+
self,
33+
function: Callable,
34+
create_evaluation_dirs: bool = False,
35+
redirect_logs_to_file: bool = False,
3336
) -> None:
3437
super().__init__(sim_function=run_function)
3538
self.function = function

optimas/sim_functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Contains the definition of the simulation functions given to libEnsemble."""
2+
23
from contextlib import redirect_stderr, redirect_stdout
34

45
import jinja2

tests/test_function_evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def test_function_evaluator_with_logs():
112112
var1 = VaryingParameter("x0", -50.0, 5.0)
113113
var2 = VaryingParameter("x1", -5.0, 15.0)
114114
obj = Objective("f", minimize=False)
115-
115+
116116
# Create generator.
117117
gen = RandomSamplingGenerator(
118118
varying_parameters=[var1, var2],

0 commit comments

Comments
 (0)