Spaces:
Running
Running
tracinginsights
commited on
Commit
•
c99acf6
1
Parent(s):
9c502bd
Update pages/Circuit_Maps.py
Browse files- pages/Circuit_Maps.py +6 -18
pages/Circuit_Maps.py
CHANGED
@@ -1,34 +1,22 @@
|
|
1 |
import streamlit as st
|
2 |
from repo_directory import Circuit_plots
|
3 |
-
from repo_directory import button
|
4 |
|
5 |
# selections
|
6 |
YEAR = st.selectbox(
|
7 |
'Select Year',
|
8 |
-
(2023, 2022, 2021, 2020, 2019, 2018))
|
9 |
-
|
10 |
-
|
11 |
-
if YEAR == 2023:
|
12 |
-
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
|
13 |
-
if YEAR == 2022:
|
14 |
-
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
|
15 |
-
if YEAR == 2021:
|
16 |
-
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
|
17 |
-
if YEAR == 2020:
|
18 |
-
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
|
19 |
-
if YEAR == 2019:
|
20 |
-
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)
|
21 |
-
if YEAR == 2018:
|
22 |
-
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)
|
23 |
|
24 |
RACE = st.selectbox(
|
25 |
'Select Race',
|
26 |
-
|
27 |
|
28 |
|
29 |
SESSION = st.selectbox(
|
30 |
'Select Session',
|
31 |
-
(
|
32 |
|
33 |
Circuit_plots.plot_speed(YEAR,RACE,SESSION)
|
34 |
|
|
|
1 |
import streamlit as st
|
2 |
from repo_directory import Circuit_plots
|
3 |
+
from repo_directory import button, utils
|
4 |
|
5 |
# selections
|
6 |
YEAR = st.selectbox(
|
7 |
'Select Year',
|
8 |
+
(2024,2023, 2022, 2021, 2020, 2019, 2018))
|
9 |
+
|
10 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
RACE = st.selectbox(
|
13 |
'Select Race',
|
14 |
+
utils.get_events(YEAR))
|
15 |
|
16 |
|
17 |
SESSION = st.selectbox(
|
18 |
'Select Session',
|
19 |
+
utils.get_sessions(YEAR, RACE))
|
20 |
|
21 |
Circuit_plots.plot_speed(YEAR,RACE,SESSION)
|
22 |
|