mirror of
https://github.com/IAmTomShaw/f1-race-replay.git
synced 2026-05-09 16:35:49 +02:00
[PR #169] Add sector-based delta widget to Qualifying GUI #191
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/f1-race-replay#191
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/169
Author: @zhanbo-liew
Created: 1/14/2026
Status: 🔄 Open
Base:
main← Head:sector-delta-widget📝 Commits (1)
f1886d6Add sector delta widget on Qualifying GUI📊 Changes
3 files changed (+549 additions, -7 deletions)
View changed files
📝
requirements.txt(+1 -0)📝
src/f1_data.py(+24 -0)📝
src/interfaces/qualifying.py(+524 -7)📄 Description
Qualifying GUI: Distance-Aligned Delta & Sector Delta Widget
Summary
Improves qualifying lap comparison accuracy and visualization by switching delta calculations to distance-aligned telemetry, making comparisons session-aware (Q1/Q2/Q3), and adding a new sector-based delta widget styled after F1 broadcast timing.
What Changed
Distance-Aligned Delta Calculation
rel_dist/dist) rather than frame index.Session-Aware Comparison Logic
Comparison driver: <CODE> (<Qx>)Sector Boundaries & Timing
Sector1Time+Sector2TimeSector Bests (Global & Personal)
session.laps:Sector Delta Table UI
--until active.F1-Style Sector Coloring
Applied per-sector coloring:
#9B4DFF) — overall session best#1AFF6B) — driver personal best#FFDD33) — other valid sector timesVisualization uses a colored underline beneath each sector time for clarity with minimal UI clutter.
Delta Formatting
+0.123s) instead of lap-style formatting.Notes / Future Improvements
Screenshot
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.