Spaces:
Running
Running
Andrea Maldonado
commited on
Commit
·
2a2deae
1
Parent(s):
e88f486
Default combinatorial over range
Browse files- utils/config_fabric.py +3 -3
utils/config_fabric.py
CHANGED
@@ -56,7 +56,7 @@ def play_header():
|
|
56 |
"""
|
57 |
return
|
58 |
|
59 |
-
def double_switch(label_left, label_right, third_label=None, fourth_label=None):
|
60 |
if third_label==None and fourth_label==None:
|
61 |
# Create two columns for the labels and toggle switch
|
62 |
col0, col1, col2, col3, col4 = st.columns([2,1,1,1,2])
|
@@ -70,7 +70,7 @@ def double_switch(label_left, label_right, third_label=None, fourth_label=None):
|
|
70 |
|
71 |
with col2:
|
72 |
# Create the toggle switch
|
73 |
-
toggle_option = st.toggle(" ",value=
|
74 |
key="toggle_switch_"+label_left,
|
75 |
)
|
76 |
|
@@ -215,7 +215,7 @@ def set_generator_experiments(generator_params):
|
|
215 |
|
216 |
def handle_manual_option(grid_option):
|
217 |
if grid_option:
|
218 |
-
combinatorial = double_switch("Range", "Combinatorial")
|
219 |
if combinatorial:
|
220 |
col1, col2 = st.columns([1,4])
|
221 |
with col1:
|
|
|
56 |
"""
|
57 |
return
|
58 |
|
59 |
+
def double_switch(label_left, label_right, third_label=None, fourth_label=None, value=False):
|
60 |
if third_label==None and fourth_label==None:
|
61 |
# Create two columns for the labels and toggle switch
|
62 |
col0, col1, col2, col3, col4 = st.columns([2,1,1,1,2])
|
|
|
70 |
|
71 |
with col2:
|
72 |
# Create the toggle switch
|
73 |
+
toggle_option = st.toggle(" ",value=value,
|
74 |
key="toggle_switch_"+label_left,
|
75 |
)
|
76 |
|
|
|
215 |
|
216 |
def handle_manual_option(grid_option):
|
217 |
if grid_option:
|
218 |
+
combinatorial = double_switch("Range", "Combinatorial", value=True)
|
219 |
if combinatorial:
|
220 |
col1, col2 = st.columns([1,4])
|
221 |
with col1:
|