Skip to content
Snippets Groups Projects
Commit 2db6e84e authored by Lennard Geese's avatar Lennard Geese
Browse files

Adjust identification of race sessions

parent b57da634
No related branches found
No related tags found
No related merge requests found
...@@ -20,10 +20,10 @@ class Main: ...@@ -20,10 +20,10 @@ class Main:
self.listWetWeatherRacesSince(2015) self.listWetWeatherRacesSince(2015)
racesToAnalyse = [ racesToAnalyse = [
SessionIdentifier(2022, 4, "R"), # Imola 2022 (DWR) SessionIdentifier(2022, "Imola", "R"), # Imola 2022 (DWR)
SessionIdentifier(2024, 7, "R"), # Imola 2024 (SWR) SessionIdentifier(2024, "Imola", "R"), # Imola 2024 (SWR)
SessionIdentifier(2024, 9, "R"), # Canada 2024 (DWR) SessionIdentifier(2024, "Montreal", "R"), # Canada 2024 (DWR)
SessionIdentifier(2023, 8, "R") # Canada 2023 (SWR) SessionIdentifier(2023, "Montreal", "R") # Canada 2023 (SWR)
] ]
self.overtakeAnalysis(racesToAnalyse) self.overtakeAnalysis(racesToAnalyse)
...@@ -44,7 +44,7 @@ class Main: ...@@ -44,7 +44,7 @@ class Main:
# Import # Import
raceSession = dataHandler.importer.importSession(raceSessionIdentifier) raceSession = dataHandler.importer.importSession(raceSessionIdentifier)
raceName: str = f"{raceSession.event['EventName']} {raceSession.event.year}" grandPrixName: str = f"{raceSession.event['EventName']} {raceSession.event.year}"
print("Import done") print("Import done")
...@@ -59,12 +59,13 @@ class Main: ...@@ -59,12 +59,13 @@ class Main:
# Plot # Plot
dataHandler.plotter.plotOvertakesWithTireChangeWindow(overtakesInRaces, earliestTireChange, latestTireChange, raceName) dataHandler.plotter.plotOvertakesWithTireChangeWindow(overtakesInRaces, earliestTireChange, latestTireChange, grandPrixName)
print("Plot done") print("Plot done")
# Print data # Print data
print(f"\n\n===== Data for race {raceSessionIdentifier.event}/{raceSessionIdentifier.year} =====") print(f"\n\n===== Data for {grandPrixName} =====")
print("Lap\tOvertakes") print("Lap\tOvertakes")
currentLap = 0 currentLap = 0
for overtakesInLap in overtakesInRaces: for overtakesInLap in overtakesInRaces:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment