tracinginsights commited on
Commit
7ddaada
1 Parent(s): ea15f17

Update pages/Tyre_Degradation.py

Browse files
Files changed (1) hide show
  1. pages/Tyre_Degradation.py +4 -4
pages/Tyre_Degradation.py CHANGED
@@ -1,20 +1,20 @@
1
  import streamlit as st
2
  from repo_directory import Tyre_Degradation
3
- from repo_directory import button
4
 
5
  YEAR_SELECTED = st.selectbox(
6
  'Select year',
7
- (2023, 2022, 2021, 2020, 2019, 2018))
8
 
9
  colors_df = Tyre_Degradation.get_colors(YEAR_SELECTED)
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
- ('R', 'SQ', 'FP1', 'FP2', 'FP3', 'Q'))
18
 
19
  laps, f1session, all_driver_compound, all_compounds_used, all_team_compound = Tyre_Degradation.get_laps(YEAR_SELECTED, RACE_SELECTED, SESSION)
20
 
 
1
  import streamlit as st
2
  from repo_directory import Tyre_Degradation
3
+ from repo_directory import button, utils
4
 
5
  YEAR_SELECTED = st.selectbox(
6
  'Select year',
7
+ (2024, 2023, 2022, 2021, 2020, 2019, 2018))
8
 
9
  colors_df = Tyre_Degradation.get_colors(YEAR_SELECTED)
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
  laps, f1session, all_driver_compound, all_compounds_used, all_team_compound = Tyre_Degradation.get_laps(YEAR_SELECTED, RACE_SELECTED, SESSION)
20