@@ -225,7 +225,9 @@ def load_inputs(self) -> Dict[str, Any]:
225225 },
226226 "budget_id" : {
227227 "options" : self .budget_options ,
228- "value" : self .budget_options [- 1 ]["value" ],
228+ "value" : self .budget_options [0 ]["value" ]
229+ if len (self .budget_options ) == 1
230+ else self .budget_options [- 2 ]["value" ],
229231 },
230232 "xaxis" : {
231233 "options" : [
@@ -344,8 +346,7 @@ def load_outputs(runs, inputs, outputs) -> go.Figure: # type: ignore
344346 continue
345347
346348 objective = run .get_objective (inputs ["objective_id" ])
347- budget = run .get_budget (inputs ["budget_id" ])
348- config_ids = outputs [run .id ]["config_ids" ]
349+ ids = outputs [run .id ]["ids" ]
349350 x = outputs [run .id ]["times" ]
350351 if inputs ["xaxis" ] == "trials" :
351352 x = outputs [run .id ]["ids" ]
@@ -360,9 +361,11 @@ def load_outputs(runs, inputs, outputs) -> go.Figure: # type: ignore
360361 hoverinfo = "skip"
361362 symbol = None
362363 mode = "lines"
363- if len (config_ids ) > 0 :
364+ if len (run . history ) > 0 :
364365 hovertext = [
365- get_hovertext_from_config (run , config_id , budget ) for config_id in config_ids
366+ get_hovertext_from_config (run , trial .config_id , trial .budget )
367+ for id , trial in enumerate (run .history )
368+ if id in ids
366369 ]
367370 hoverinfo = "text"
368371 symbol = "circle"
0 commit comments