tracinginsights commited on
Commit
4e57d68
1 Parent(s): 8d70b09

Rename pages/Car_Telemetry.py to pages/Circuit_Maps.py

Browse files
Files changed (2) hide show
  1. pages/Car_Telemetry.py +0 -37
  2. pages/Circuit_Maps.py +49 -0
pages/Car_Telemetry.py DELETED
@@ -1,37 +0,0 @@
1
- # import streamlit as st
2
- # from repo_directory import Car_Telemetry
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
- # def total_rounds(YEAR):
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, 23)
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
- # total_rounds(YEAR))
27
-
28
-
29
- # # SESSION = st.selectbox(
30
- # # 'Select Session',
31
- # # ('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R'))
32
-
33
- # Car_Telemetry.plot_speed(YEAR,RACE,'Q')
34
-
35
- # Car_Telemetry.plot_speed2(YEAR,RACE,'Q')
36
-
37
- # Car_Telemetry.plot_brake(YEAR,RACE,'Q')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pages/Circuit_Maps.py ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ def total_rounds(YEAR):
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
+ total_rounds(YEAR))
27
+
28
+
29
+ SESSION = st.selectbox(
30
+ 'Select Session',
31
+ ('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R'))
32
+
33
+ Car_Telemetry.plot_speed(YEAR,RACE,SESSION)
34
+
35
+ Car_Telemetry.plot_speed2(YEAR,RACE,SESSION)
36
+
37
+ Car_Telemetry.plot_brake(YEAR,RACE,SESSION)
38
+
39
+ Car_Telemetry.plot_throttle(YEAR,RACE,SESSION)
40
+
41
+ Car_Telemetry.plot_elevation(YEAR,RACE,SESSION)
42
+
43
+ Car_Telemetry.plot_lon_acc(YEAR,RACE,SESSION)
44
+
45
+
46
+ Car_Telemetry.plot_lat_acc(YEAR,RACE,SESSION)
47
+
48
+ Car_Telemetry.plot_vertical_acc(YEAR,RACE,SESSION)
49
+