Skip to content

Commit eb37c85

Browse files
fmfnfmfn
authored andcommitted
Fix parameter name in async example
The async example was calling `register` with a parameter `x`, this is the old style. This commit changes it to `params` fixing a bug.
1 parent 9b8bafb commit eb37c85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/async_optimization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def post(self):
4545

4646
try:
4747
self._bo.register(
48-
x=body["params"],
48+
params=body["params"],
4949
target=body["target"],
5050
)
5151
print("BO has registered: {} points.".format(len(self._bo.space)), end="\n\n")

0 commit comments

Comments
 (0)