[PR #177] [MERGED] A dynamic tyre degradation visualization #195

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

📋 Pull Request Information

Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/177
Author: @bokiiiiiii
Created: 1/20/2026
Status: Merged
Merged: 1/29/2026
Merged by: @IAmTomShaw

Base: mainHead: main


📝 Commits (10+)

  • 6699ce1 Add Bayesian state-space tyre degradation model
  • 4c8052c Stabilize tyre degradation estimation using median slopes and compound-specific priors
  • 2e4d537 Merge branch 'main' into bayesian-tyre-degradation
  • ee44b8f Refactoring the tyre degradation to universal and condition-aware model
  • b481ebc Minor cleanup
  • ae22204 Merge branch 'bayesian-tyre-degradation' of https://github.com/skandas1304/f1-race-replay into bayesian-tyre-degradation
  • b2c92a7 Merge branch 'main' into bayesian-tyre-degradation
  • 5fd41d3 #176: Add tyre degradation visualization
  • 644a5f6 Merge branch 'IAmTomShaw:main' into main
  • 65685a1 Merge branch 'IAmTomShaw:main' into main

📊 Changes

7 files changed (+976 additions, -18 deletions)

View changed files

📝 main.py (+2 -1)
📝 src/arcade_replay.py (+3 -2)
src/bayesian_tyre_model.py (+667 -0)
📝 src/f1_data.py (+22 -5)
📝 src/interfaces/race_replay.py (+26 -1)
src/tyre_degradation_integration.py (+161 -0)
📝 src/ui_components.py (+95 -9)

📄 Description

Issue Link: #176

  • Data Layer: Extract TyreLife from the FastF1 telemetry data. Implement a session-wide max_tyre_life_map that identifies the longest recorded stint for each compound across all drivers. This serves as a dynamic 100% capacity baseline for different tracks.

  • UI Layer: Use a clipping effect (via window.ctx.scissor) to render the bright compound icon over a darkened background, creating a water-level depletion effect as tyre_health_ratio decreases.

  • Visualization:

image

🔄 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/177 **Author:** [@bokiiiiiii](https://github.com/bokiiiiiii) **Created:** 1/20/2026 **Status:** ✅ Merged **Merged:** 1/29/2026 **Merged by:** [@IAmTomShaw](https://github.com/IAmTomShaw) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`6699ce1`](https://github.com/IAmTomShaw/f1-race-replay/commit/6699ce13328b5c334829fd70dc1ddc2075ed4661) Add Bayesian state-space tyre degradation model - [`4c8052c`](https://github.com/IAmTomShaw/f1-race-replay/commit/4c8052c2780d84e31b78f0e74fdea9435b3f911c) Stabilize tyre degradation estimation using median slopes and compound-specific priors - [`2e4d537`](https://github.com/IAmTomShaw/f1-race-replay/commit/2e4d537f7710f55810991e7da1cdfa2feda175c1) Merge branch 'main' into bayesian-tyre-degradation - [`ee44b8f`](https://github.com/IAmTomShaw/f1-race-replay/commit/ee44b8fde1145f99567d7bc97b13d263bf0ab255) Refactoring the tyre degradation to universal and condition-aware model - [`b481ebc`](https://github.com/IAmTomShaw/f1-race-replay/commit/b481ebc80060c1deb99159a84903708ffd7230af) Minor cleanup - [`ae22204`](https://github.com/IAmTomShaw/f1-race-replay/commit/ae2220402b4f7c9f4bc3d389654b329e31164c76) Merge branch 'bayesian-tyre-degradation' of https://github.com/skandas1304/f1-race-replay into bayesian-tyre-degradation - [`b2c92a7`](https://github.com/IAmTomShaw/f1-race-replay/commit/b2c92a754f82ccdff50fc1dcfba805b552ea3cdb) Merge branch 'main' into bayesian-tyre-degradation - [`5fd41d3`](https://github.com/IAmTomShaw/f1-race-replay/commit/5fd41d32104904d5858f29f76d3e4d285acc8f54) #176: Add tyre degradation visualization - [`644a5f6`](https://github.com/IAmTomShaw/f1-race-replay/commit/644a5f62c8c0d7c47adcc9a36cc9d7d3b29b7575) Merge branch 'IAmTomShaw:main' into main - [`65685a1`](https://github.com/IAmTomShaw/f1-race-replay/commit/65685a1d16063e9e76e1f2ef35c28f65b5dc3577) Merge branch 'IAmTomShaw:main' into main ### 📊 Changes **7 files changed** (+976 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `main.py` (+2 -1) 📝 `src/arcade_replay.py` (+3 -2) ➕ `src/bayesian_tyre_model.py` (+667 -0) 📝 `src/f1_data.py` (+22 -5) 📝 `src/interfaces/race_replay.py` (+26 -1) ➕ `src/tyre_degradation_integration.py` (+161 -0) 📝 `src/ui_components.py` (+95 -9) </details> ### 📄 Description **Issue Link:** #176 - **Data Layer:** Extract TyreLife from the FastF1 telemetry data. Implement a session-wide max_tyre_life_map that identifies the longest recorded stint for each compound across all drivers. This serves as a dynamic 100% capacity baseline for different tracks. - **UI Layer:** Use a clipping effect (via window.ctx.scissor) to render the bright compound icon over a darkened background, creating a water-level depletion effect as tyre_health_ratio decreases. - **Visualization:** <img width="316" height="665" alt="image" src="https://github.com/user-attachments/assets/93978e27-66c7-491e-bf16-10dde20234df" /> --- <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:09 +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#195
No description provided.