[PR #241] Fix missing DRS zones by falling back to previous year qualifying data #246

Open
opened 2026-05-07 00:19:23 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/241
Author: @ElirKvothe
Created: 3/2/2026
Status: 🔄 Open

Base: mainHead: fix/drs-zone-fallback-previous-year


📝 Commits (2)

  • 44c5aee Fix missing DRS zones by falling back to previous year qualifying data
  • b7a7b9b Refactor: move DRS fallback logic into helper function in f1_data.py

📊 Changes

2 files changed (+58 additions, -1 deletions)

View changed files

📝 main.py (+3 -1)
📝 src/f1_data.py (+55 -0)

📄 Description

When a session's telemetry lacks DRS activation data (e.g. 2025 Las Vegas GP), the app now automatically loads the previous year's qualifying for the same circuit and maps its DRS zones onto the current track layout.

Fixes #89

Screenshot 2026-03-02 at 15 03 51

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/IAmTomShaw/f1-race-replay/pull/241 **Author:** [@ElirKvothe](https://github.com/ElirKvothe) **Created:** 3/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/drs-zone-fallback-previous-year` --- ### 📝 Commits (2) - [`44c5aee`](https://github.com/IAmTomShaw/f1-race-replay/commit/44c5aee54c61bd5b58317ec07e1525917387d2c1) Fix missing DRS zones by falling back to previous year qualifying data - [`b7a7b9b`](https://github.com/IAmTomShaw/f1-race-replay/commit/b7a7b9b209e0f29a2d15337124d9cc4987c8e6d0) Refactor: move DRS fallback logic into helper function in f1_data.py ### 📊 Changes **2 files changed** (+58 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `main.py` (+3 -1) 📝 `src/f1_data.py` (+55 -0) </details> ### 📄 Description When a session's telemetry lacks DRS activation data (e.g. 2025 Las Vegas GP), the app now automatically loads the previous year's qualifying for the same circuit and maps its DRS zones onto the current track layout. Fixes #89 <img width="1619" height="1039" alt="Screenshot 2026-03-02 at 15 03 51" src="https://github.com/user-attachments/assets/d6d179d2-72fc-4669-858e-bff18b57c75b" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/f1-race-replay#246
No description provided.