Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
roussel-ryan committed Oct 29, 2024
1 parent d55eedf commit 7f1311d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions xopt/generators/bayesian/bayesian_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,7 @@ def propose_candidates(self, model, n_candidates=1):
)
else:
candidates = self.numerical_optimizer.optimize(
acq_funct,
bounds,
n_candidates,
batch_initial_conditions=initial_points
acq_funct, bounds, n_candidates, batch_initial_conditions=initial_points
)
return candidates

Expand Down
6 changes: 3 additions & 3 deletions xopt/tests/generators/bayesian/test_mobo.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ def test_initial_conditions(self):
ic = gen._get_initial_conditions()
assert not torch.allclose(
ic[:4],
torch.tensor(
((0.1, 0.1), (0.2, 0.2), (0.4, 0.2), (0.15, 0.15))
).reshape(4, 1, 2).double()
torch.tensor(((0.1, 0.1), (0.2, 0.2), (0.4, 0.2), (0.15, 0.15)))
.reshape(4, 1, 2)
.double(),
)

gen.generate(1)
Expand Down

0 comments on commit 7f1311d

Please sign in to comment.