kbberendsen commited on
Commit
0054bfa
1 Parent(s): 4aeb802

rename session to f1_session to avoid conflict

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -30,10 +30,10 @@ def server(input, output, session):
30
  def get_data():
31
 
32
 
33
- session = ff1.get_session(2023, input.track, 'R')
34
- session.load()
35
 
36
- lap = session.laps.pick_fastest()
37
  tel = lap.get_telemetry()
38
 
39
  #converting data to numpy data tables
@@ -65,7 +65,7 @@ def server(input, output, session):
65
 
66
  ##title = plt.suptitle(
67
  ## f"Fastest Lap Gear Shift Visualization\n"
68
- ## f"{lap['Driver']} - {session.event['EventName']} {session.event.year}"
69
  ## )
70
 
71
  cbar = plt.colorbar(mappable=lc_comp, label="Gear", boundaries=np.arange(1, 10))
 
30
  def get_data():
31
 
32
 
33
+ f1_session = ff1.get_session(2023, input.track, 'R')
34
+ f1_session.load()
35
 
36
+ lap = f1_session.laps.pick_fastest()
37
  tel = lap.get_telemetry()
38
 
39
  #converting data to numpy data tables
 
65
 
66
  ##title = plt.suptitle(
67
  ## f"Fastest Lap Gear Shift Visualization\n"
68
+ ## f"{lap['Driver']} - {f1_session.event['EventName']} {f1_session.event.year}"
69
  ## )
70
 
71
  cbar = plt.colorbar(mappable=lc_comp, label="Gear", boundaries=np.arange(1, 10))