tracinginsights commited on
Commit
5a2fe1a
1 Parent(s): f20f8de

Create Peak_G-Forces.py

Browse files
Files changed (1) hide show
  1. pages/Peak_G-Forces.py +29 -0
pages/Peak_G-Forces.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from repo_directory import Peak_G-Forces as gf
3
+ from repo_directory import button
4
+
5
+ YEAR_SELECTED = st.selectbox(
6
+ 'Select Year',
7
+ (2023, 2022, 2021, 2020, 2019, 2018))
8
+
9
+ RACE_SELECTED = st.selectbox(
10
+ 'Select Race',
11
+ (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23))
12
+
13
+ SESSION = st.selectbox(
14
+ 'Select Session',
15
+ ('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R'))
16
+
17
+ laps, f1session = gf.get_laps(YEAR_SELECTED, RACE_SELECTED, SESSION)
18
+
19
+ df = gf.get_df(laps, f1session)
20
+
21
+ gf.plot_acceleration(df, f1session)
22
+
23
+ gf.plot_braking(df, f1session)
24
+
25
+ gf.plot_right(df, f1session)
26
+
27
+ gf.plot_left(df, f1session)
28
+
29
+