Skip to content

Commit

Permalink
Merge pull request #14 from BoostV/feature/extras
Browse files Browse the repository at this point in the history
Add extras to result
  • Loading branch information
langdal authored Jun 17, 2021
2 parents f7900b0 + f1ea058 commit 3b8ba8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion optimizerapi/openapi/specification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,6 @@ components:
next:
type: array
items:
type: number
type: number
extras:
type: object
4 changes: 3 additions & 1 deletion optimizerapi/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def processResult(result, optimizer, dimensions, cfg, data, space):
resultDetails = {
"next": [],
"pickled": "",
"expected_minimum": []
"expected_minimum": [],
"extras": {}
}
plots = []
response = {
Expand Down Expand Up @@ -120,6 +121,7 @@ def processResult(result, optimizer, dimensions, cfg, data, space):
addPlot(plots, "objective")

resultDetails["pickled"] = securepickle.pickleToString(result, securepickle.get_crypto())

# print(str(response))
return response

Expand Down

0 comments on commit 3b8ba8e

Please sign in to comment.