Spaces:
Running
Running
James McCool
commited on
Commit
·
851917a
1
Parent(s):
621bd03
Update slate selection logic in app.py: enhance raw baseline retrieval by incorporating slate type (Regular or Showdown) for both Main and Secondary slates, improving data accuracy based on user input.
Browse files
app.py
CHANGED
@@ -315,9 +315,15 @@ with tab1:
|
|
315 |
slate_split = st.radio("Slate Type", ('Main Slate', 'Secondary'), key='slate_split')
|
316 |
|
317 |
if slate_split == 'Main Slate':
|
318 |
-
|
|
|
|
|
|
|
319 |
elif slate_split == 'Secondary':
|
320 |
-
|
|
|
|
|
|
|
321 |
|
322 |
with col5:
|
323 |
split_var2 = st.radio("Slate Range", ('Full Slate Run', 'Specific Games'), key='split_var2')
|
|
|
315 |
slate_split = st.radio("Slate Type", ('Main Slate', 'Secondary'), key='slate_split')
|
316 |
|
317 |
if slate_split == 'Main Slate':
|
318 |
+
if slate_type_var2 == 'Regular':
|
319 |
+
raw_baselines = site_baselines[site_baselines['slate'] == 'Main Slate']
|
320 |
+
elif slate_type_var2 == 'Showdown':
|
321 |
+
raw_baselines = site_baselines[site_baselines['slate'] == 'Showdown #1']
|
322 |
elif slate_split == 'Secondary':
|
323 |
+
if slate_type_var2 == 'Regular':
|
324 |
+
raw_baselines = site_baselines[site_baselines['slate'] == 'Secondary Slate']
|
325 |
+
elif slate_type_var2 == 'Showdown':
|
326 |
+
raw_baselines = site_baselines[site_baselines['slate'] == 'Showdown #2']
|
327 |
|
328 |
with col5:
|
329 |
split_var2 = st.radio("Slate Range", ('Full Slate Run', 'Specific Games'), key='split_var2')
|