Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sabinala committed Jul 23, 2024
1 parent 5d32783 commit d4e5602
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion pyciemss/ouu/ouu.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ def __init__(
maxfeval: int = 100,
maxiter: int = 100,
u_bounds: np.ndarray = np.atleast_2d([[0], [1]]),
progress_hook: Callable[[np.array, float, bool], bool] = lambda x, f, accept: False,
progress_hook: Callable[
[np.array, float, bool], bool
] = lambda x, f, accept: False,
):
self.x0 = np.squeeze(np.array([x0]))
self.objfun = objfun
Expand Down
4 changes: 1 addition & 3 deletions tests/test_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,7 @@ def __call__(self, x, f, accept):
intervened_result_subset, start_time, end_time, logging_step_size, num_samples
)

assert len(progress_hook.coordinates) == (
optimize_kwargs["maxiter"] + 1
)
assert len(progress_hook.coordinates) == (optimize_kwargs["maxiter"] + 1)


@pytest.mark.parametrize("model_fixture", MODELS)
Expand Down

0 comments on commit d4e5602

Please sign in to comment.