Spaces:
Running
Running
James McCool
commited on
Commit
·
f403274
1
Parent(s):
bea5321
Enhance app.py by initializing DK and FD raw data within specific team selection logic. This change ensures that the correct slate data is consistently retrieved for both team and stack size selections, improving data handling and accuracy in contest simulations.
Browse files
app.py
CHANGED
@@ -201,8 +201,10 @@ with tab2:
|
|
201 |
|
202 |
team_var1 = st.radio("Do you want a frame with specific teams?", ('Full Slate', 'Specific Teams'), key='team_var1')
|
203 |
if team_var1 == 'Specific Teams':
|
|
|
204 |
team_var2 = st.multiselect('Which teams do you want?', options = dk_raw['Team'].unique())
|
205 |
elif team_var1 == 'Full Slate':
|
|
|
206 |
team_var2 = dk_raw.Team.values.tolist()
|
207 |
|
208 |
stack_var1 = st.radio("Do you want a frame with specific stack sizes?", ('Full Slate', 'Specific Stack Sizes'), key='stack_var1')
|
@@ -215,8 +217,10 @@ with tab2:
|
|
215 |
|
216 |
team_var1 = st.radio("Do you want a frame with specific teams?", ('Full Slate', 'Specific Teams'), key='team_var1')
|
217 |
if team_var1 == 'Specific Teams':
|
|
|
218 |
team_var2 = st.multiselect('Which teams do you want?', options = fd_raw['Team'].unique())
|
219 |
elif team_var1 == 'Full Slate':
|
|
|
220 |
team_var2 = fd_raw.Team.values.tolist()
|
221 |
|
222 |
stack_var1 = st.radio("Do you want a frame with specific stack sizes?", ('Full Slate', 'Specific Stack Sizes'), key='stack_var1')
|
|
|
201 |
|
202 |
team_var1 = st.radio("Do you want a frame with specific teams?", ('Full Slate', 'Specific Teams'), key='team_var1')
|
203 |
if team_var1 == 'Specific Teams':
|
204 |
+
dk_raw, fd_raw = init_baselines('Main Slate')
|
205 |
team_var2 = st.multiselect('Which teams do you want?', options = dk_raw['Team'].unique())
|
206 |
elif team_var1 == 'Full Slate':
|
207 |
+
dk_raw, fd_raw = init_baselines('Main Slate')
|
208 |
team_var2 = dk_raw.Team.values.tolist()
|
209 |
|
210 |
stack_var1 = st.radio("Do you want a frame with specific stack sizes?", ('Full Slate', 'Specific Stack Sizes'), key='stack_var1')
|
|
|
217 |
|
218 |
team_var1 = st.radio("Do you want a frame with specific teams?", ('Full Slate', 'Specific Teams'), key='team_var1')
|
219 |
if team_var1 == 'Specific Teams':
|
220 |
+
dk_raw, fd_raw = init_baselines('Main Slate')
|
221 |
team_var2 = st.multiselect('Which teams do you want?', options = fd_raw['Team'].unique())
|
222 |
elif team_var1 == 'Full Slate':
|
223 |
+
dk_raw, fd_raw = init_baselines('Main Slate')
|
224 |
team_var2 = fd_raw.Team.values.tolist()
|
225 |
|
226 |
stack_var1 = st.radio("Do you want a frame with specific stack sizes?", ('Full Slate', 'Specific Stack Sizes'), key='stack_var1')
|