@@ -10,6 +10,7 @@ Arguments:\\
1010**Return Value:** `Hyperscript.Node{Hyperscript.HTMLSVG}` - final HTML code of the dashboard.
1111"""
1212function explore (model:: UnfoldModel ; positions = nothing , size = (700 , 600 ))
13+ Bonito. set_cleanup_time! (1 ) # wait one hour before closing session
1314 # Initialize the App from Bonito. App allows to wrap all interactive elements and to deploy them
1415 myapp = App () do
1516 # Extract formula terms and their features from the model.
@@ -26,14 +27,12 @@ function explore(model::UnfoldModel; positions = nothing, size = (700, 600))
2627 mapping, mapping_dom = mapping_dropdowns (var_names, var_types)
2728
2829 # Create interactive topoplot widget on the lower left panel of the dashboard.
29- channel_chosen = Observable (1 )
30+ channel_chosen = Observable (4 )
3031 if isnothing (positions)
3132 topo_widget = nothing
3233 else
3334 topo_widget = topoplot_widget (positions, channel_chosen; size = size .* 0.5 )
34- # Problem: does it update?
3535 end
36-
3736 # Create Observable DataFrame with predicted values (yhats) of the model.
3837 ERP_data = get_ERP_data (model, formula_toggle, channel_chosen)
3938
@@ -44,7 +43,6 @@ function explore(model::UnfoldModel; positions = nothing, size = (700, 600))
4443 ks_ft = [t. first for t in ft]
4544 for k in ks_ft
4645 formula_defaults[k][] = k ∈ ks_m
47- @debug " x" formula_defaults[k][]
4846 end
4947 end
5048
0 commit comments