File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 2828- When getting budget, objectives etc from multiple runs in Cost over Time and Pareto Front:
2929 - Instead of taking the first run as comparative value,
3030 - take the one with the lowest budget, else the index for the budgets could be out of bounds.
31+ - Free port when exiting via the exit button (#52 ).
3132
3233## Documentation
3334- Add How to Contribute section.
Original file line number Diff line number Diff line change 1717import time
1818
1919import dash_bootstrap_components as dbc
20+ import requests
2021from dash import dcc , html
2122from dash .dependencies import Input , Output
2223
23- from deepcave import app , c , queue
24+ from deepcave import app , c , config , queue
2425from deepcave .layouts import Layout
2526
2627
@@ -114,6 +115,7 @@ def callback(n_clicks: Optional[int]) -> None:
114115 # Then we want to terminate DeepCAVE
115116 if n_clicks is not None :
116117 time .sleep (1 )
118+ requests .post (f"http://localhost:{ config .DASH_PORT } /shutdown" )
117119 os ._exit (130 )
118120
119121 def __call__ (self ) -> html .Header : # noqa: D102
You can’t perform that action at this time.
0 commit comments