[PR #258] [MERGED] Pit-stop indicator for the leaderboard #254

Closed
opened 2026-05-07 00:19:25 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/258
Author: @ShivaShaklya
Created: 3/14/2026
Status: Merged
Merged: 5/4/2026
Merged by: @IAmTomShaw

Base: mainHead: main


📝 Commits (3)

  • 53260a9 Pit-stop indicator for the leaderboard
  • cdbd463 Comment edit
  • 2da7506 Merge branch 'IAmTomShaw:main' into main

📊 Changes

2 files changed (+64 additions, -3 deletions)

View changed files

📝 src/f1_data.py (+41 -1)
📝 src/ui_components.py (+23 -2)

📄 Description

Summary

This PR adds a PIT indicator to the race replay leaderboard to show when a driver is currently in the pit lane during a race replay.

The indicator is displayed as PIT next to the driver name and is rendered in white so that it remains visually distinct.

Changes

  • Implemented pit lane detection using FastF1 lap data:
    • PitInTime
    • PitOutTime
  • Computed pit windows for each driver during telemetry preprocessing.
  • Added an in_pit flag to driver frame data.
  • Updated leaderboard rendering to display a PIT indicator when a driver is inside the pit lane.

The existing OUT indicator was already present but its color was modified for better readability.

Example

image

Motivation

This improves race replay readability by making pit stops visible on the leaderboard and highlighting their impact on race order and strategy.

Future Work

This PR aims to lay the groundwork for a visual pit-entry and exit sim addition, where cars entering the pit lane can be shown during the replay to better represent pit stop events.


🔄 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/258 **Author:** [@ShivaShaklya](https://github.com/ShivaShaklya) **Created:** 3/14/2026 **Status:** ✅ Merged **Merged:** 5/4/2026 **Merged by:** [@IAmTomShaw](https://github.com/IAmTomShaw) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`53260a9`](https://github.com/IAmTomShaw/f1-race-replay/commit/53260a92d237a67cd6ff387854dc5bffa4bc1794) Pit-stop indicator for the leaderboard - [`cdbd463`](https://github.com/IAmTomShaw/f1-race-replay/commit/cdbd46383d9ab925776ca3ef4111f71aea47608d) Comment edit - [`2da7506`](https://github.com/IAmTomShaw/f1-race-replay/commit/2da75060ea5117bf0285026a9973eeb10bbdbb57) Merge branch 'IAmTomShaw:main' into main ### 📊 Changes **2 files changed** (+64 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/f1_data.py` (+41 -1) 📝 `src/ui_components.py` (+23 -2) </details> ### 📄 Description ## Summary This PR adds a **PIT indicator** to the race replay leaderboard to show when a driver is currently in the pit lane during a race replay. The indicator is displayed as **PIT** next to the driver name and is rendered in white so that it remains visually distinct. ## Changes - Implemented pit lane detection using FastF1 lap data: - `PitInTime` - `PitOutTime` - Computed pit windows for each driver during telemetry preprocessing. - Added an `in_pit` flag to driver frame data. - Updated leaderboard rendering to display a **PIT indicator** when a driver is inside the pit lane. The existing **OUT indicator** was already present but its color was modified for better readability. ## Example <img width="2880" height="1704" alt="image" src="https://github.com/user-attachments/assets/f0a94895-4583-4237-bed8-fd2e9a3b039b" /> ## Motivation This improves race replay readability by making pit stops visible on the leaderboard and highlighting their impact on race order and strategy. ## Future Work This PR aims to lay the groundwork for a visual pit-entry and exit sim addition, where cars entering the pit lane can be shown during the replay to better represent pit stop events. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 00:19:25 +02:00
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#254
No description provided.