Spaces:
Running
Running
Update pages/Tyre_Degradation.py
Browse files
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 |
-
(
|
| 14 |
|
| 15 |
SESSION = st.selectbox(
|
| 16 |
'Select Session',
|
| 17 |
-
(
|
| 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 |
|