tracinginsights commited on
Commit
0601886
1 Parent(s): 15cf128

Update pages/Ideal_Lap.py

Browse files
Files changed (1) hide show
  1. pages/Ideal_Lap.py +4 -4
pages/Ideal_Lap.py CHANGED
@@ -1,19 +1,19 @@
1
  import streamlit as st
2
  from repo_directory import Ideal_Lap
3
- from repo_directory import button
4
 
5
  st.write("Takes about 5-10 minutes")
6
 
7
  YEAR_SELECTED = st.selectbox(
8
  'Select Year',
9
- (2023, 2022, 2021, 2020, 2019, 2018))
10
 
11
  RACE_SELECTED = st.selectbox(
12
  'Select Race',
13
- (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23))
14
 
15
  SESSION = st.selectbox(
16
  'Select Session',
17
- ('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R'))
18
 
19
  Ideal_Lap.plot(YEAR_SELECTED, RACE_SELECTED, SESSION)
 
1
  import streamlit as st
2
  from repo_directory import Ideal_Lap
3
+ from repo_directory import button, utils
4
 
5
  st.write("Takes about 5-10 minutes")
6
 
7
  YEAR_SELECTED = st.selectbox(
8
  'Select Year',
9
+ (2024,2023, 2022, 2021, 2020, 2019, 2018))
10
 
11
  RACE_SELECTED = st.selectbox(
12
  'Select Race',
13
+ utils.get_events(YEAR_SELECTED))
14
 
15
  SESSION = st.selectbox(
16
  'Select Session',
17
+ utils.get_sessions(YEAR_SELECTED,RACE_SELECTED))
18
 
19
  Ideal_Lap.plot(YEAR_SELECTED, RACE_SELECTED, SESSION)