kbberendsen commited on
Commit
42e25ea
1 Parent(s): ec47323

drivers module with dict

Browse files
__pycache__/app.cpython-311.pyc CHANGED
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
 
modules/__pycache__/drivers.cpython-311.pyc CHANGED
Binary files a/modules/__pycache__/drivers.cpython-311.pyc and b/modules/__pycache__/drivers.cpython-311.pyc differ
 
modules/drivers.py CHANGED
@@ -1,12 +1,3 @@
1
- import os
2
- from shiny import module, App, ui, render, reactive
3
- import fastf1 as ff1
4
- import matplotlib.pyplot as plt
5
- from matplotlib.collections import LineCollection
6
- from matplotlib import cm
7
- import numpy as np
8
- import shinyswatch
9
-
10
  # Define drivers
11
  drivers_2023 = {'Fastest driver': 'Fastest driver', 'VER': 'Max Verstappen',
12
  'NOR': 'Lando Norris', 'GAS': 'Pierre Gasly', 'PER': 'Sergio Perez',
@@ -25,16 +16,4 @@ drivers_2022 = {'Fastest driver': 'Fastest driver', 'VER': 'Max Verstappen',
25
  'HAM': 'Lewis Hamilton', 'SAI': 'Carlos Sainz', 'RUS': 'George Russel',
26
  'BOT': 'Valteri Bottas', 'VRI': 'Nyck de Vries', 'VET': 'Sebastian Vettel',
27
  'RIC': 'Daniel Ricciardo', 'MSC': 'Mick Schumacher',
28
- 'LAT': 'Nicolas Latifi'}
29
-
30
- @module.ui
31
- def driver_ui(custom_label):
32
- return ui.input_select(
33
- custom_label, label="Select driver 1:",
34
- choices = ["Fastest driver"],
35
- selected = "Fastest driver"
36
- )
37
-
38
- @module.server
39
- def driver_sever(custom_label):
40
- return None
 
 
 
 
 
 
 
 
 
 
1
  # Define drivers
2
  drivers_2023 = {'Fastest driver': 'Fastest driver', 'VER': 'Max Verstappen',
3
  'NOR': 'Lando Norris', 'GAS': 'Pierre Gasly', 'PER': 'Sergio Perez',
 
16
  'HAM': 'Lewis Hamilton', 'SAI': 'Carlos Sainz', 'RUS': 'George Russel',
17
  'BOT': 'Valteri Bottas', 'VRI': 'Nyck de Vries', 'VET': 'Sebastian Vettel',
18
  'RIC': 'Daniel Ricciardo', 'MSC': 'Mick Schumacher',
19
+ 'LAT': 'Nicolas Latifi'}