Skip to content

Commit

Permalink
Fix parameter name in async example
Browse files Browse the repository at this point in the history
The async example was calling `register` with a parameter `x`, this is
the old style. This commit changes it to `params` fixing a bug.
  • Loading branch information
fmfn authored and fmfn committed Jan 7, 2019
1 parent 9b8bafb commit eb37c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/async_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def post(self):

try:
self._bo.register(
x=body["params"],
params=body["params"],
target=body["target"],
)
print("BO has registered: {} points.".format(len(self._bo.space)), end="\n\n")
Expand Down

0 comments on commit eb37c85

Please sign in to comment.