kbberendsen commited on
Commit
e1e02bd
1 Parent(s): 967cf2a

working local version

Browse files
app.py CHANGED
@@ -53,15 +53,12 @@ def server(input, output, session):
53
  points = np.array([x, y]).T.reshape(-1, 1, 2)
54
  segments = np.concatenate([points[:-1], points[1:]], axis=1)
55
  gear = tel['nGear'].to_numpy().astype(float)
56
- return points, segments, gear
57
 
58
  @output
59
  @render.plot
60
  def gear():
61
- points = get_data().points
62
- segments = get_data().segments
63
- gear = get_data().gear
64
-
65
 
66
  cmap = cm.get_cmap('Paired')
67
  lc_comp = LineCollection(segments, norm=plt.Normalize(1, cmap.N+1), cmap=cmap)
@@ -81,7 +78,7 @@ def server(input, output, session):
81
  cbar.set_ticks(np.arange(1.5, 9.5))
82
  cbar.set_ticklabels(np.arange(1, 9))
83
 
84
- return plt
85
 
86
 
87
  app = App(app_ui, server)
 
53
  points = np.array([x, y]).T.reshape(-1, 1, 2)
54
  segments = np.concatenate([points[:-1], points[1:]], axis=1)
55
  gear = tel['nGear'].to_numpy().astype(float)
56
+ return segments, gear
57
 
58
  @output
59
  @render.plot
60
  def gear():
61
+ segments, gear = get_data()
 
 
 
62
 
63
  cmap = cm.get_cmap('Paired')
64
  lc_comp = LineCollection(segments, norm=plt.Normalize(1, cmap.N+1), cmap=cmap)
 
78
  cbar.set_ticks(np.arange(1.5, 9.5))
79
  cbar.set_ticklabels(np.arange(1, 9))
80
 
81
+ plt
82
 
83
 
84
  app = App(app_ui, server)
cache/2023/2023-06-04_Spanish_Grand_Prix/2023-06-04_Race/car_data.ff1pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3016b69f5b0bb82488256064f0c0f8736200d2379b454fc7d012a9f3d5a0315a
3
+ size 41340737
cache/2023/2023-06-04_Spanish_Grand_Prix/2023-06-04_Race/driver_info.ff1pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27f1be6e7a3b113190296a7d11d6b85a902bba98602e5145a5835ea736624bea
3
+ size 5247
cache/2023/2023-06-04_Spanish_Grand_Prix/2023-06-04_Race/lap_count.ff1pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44abc12b529afc9de73c457cf850d4d9df6fc326c9f87c155401ea2d5620166a
3
+ size 1346
cache/2023/2023-06-04_Spanish_Grand_Prix/2023-06-04_Race/position_data.ff1pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:770da93d2443deddda0578759769d49fe1242f898e1c51360b60e0cab6676372
3
+ size 39345501
cache/2023/2023-06-04_Spanish_Grand_Prix/2023-06-04_Race/race_control_messages.ff1pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3189c38859e2204613a78943d939c98d4f99cc184f965725356d4d766ee92e8b
3
+ size 4929
cache/2023/2023-06-04_Spanish_Grand_Prix/2023-06-04_Race/session_status_data.ff1pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7ca71b53049599014b5c90fae5b3b3868ea11ef5f51268bf65c0edfe0a726c0
3
+ size 214
cache/2023/2023-06-04_Spanish_Grand_Prix/2023-06-04_Race/timing_app_data.ff1pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8e98acbe29aadbdb75d3ca5c28991072ba9ebe41eda5c44609a1b39e7a35038
3
+ size 109036
cache/2023/2023-06-04_Spanish_Grand_Prix/2023-06-04_Race/timing_data.ff1pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90815dfbd3d633fcc2e34ca5a1674bd931680a27976940720a858d834bdc3208
3
+ size 1136688
cache/2023/2023-06-04_Spanish_Grand_Prix/2023-06-04_Race/track_status_data.ff1pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:365bf7b151fc60a765f2b658f6ed33f992eeca3959c8455aaf9a2518948039ac
3
+ size 124
cache/2023/2023-06-04_Spanish_Grand_Prix/2023-06-04_Race/weather_data.ff1pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5508cb2f8439cd2406088db4775046f69554e45729a07846f73082ef5fa06855
3
+ size 10050
cache/fastf1_http_cache.sqlite CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fb7d045d068704b3b435ae27bf571c716108cfc173652a802999b1fe068a4430
3
- size 23609344
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15f787f544745848b63b565b056385f044a643178af11c79d209dab786ce06bb
3
+ size 47005696