How iamtomshaw/f1-race-replay works
F1 Race Replay loads a selected race or qualifying session, prepares telemetry, then runs an interactive replay; race replay also launches the Insights menu, whose windows provide parallel analysis. The code excerpts and SOURCE INDEX support the main data, replay, UI, and stream boundaries. Several documented analysis capabilities have unsampled implementations, so they are represented at their exact tree paths; uncertain runtime connections are omitted.
Main entry points: main.py Application entry · race_replay.py Race replay · insights_menu.py Insights menu · f1_data.py Session telemetry
Components 24
Session selection
- Application entry
main.py - GUI selector
src/gui/race_selection.py - CLI selector
src/cli/race_selection.py - Season defaults
src/lib/season.py - App settings
src/lib/settings.py
Replay experience
- Session telemetry
src/f1_data.py - Replay launcher
src/run_session.py - Race replay
src/interfaces/race_replay.py - Qualifying replay
src/interfaces/qualifying.py - Replay HUD
src/ui_components.py
Telemetry insights
- Insights menu
src/gui/insights_menu.py - Pit wall window
src/gui/pit_wall_window.py - Driver telemetry
src/insights/driver_telemetry_window.py - Lap time charts
src/insights/lap_time_chart_window.py - Track positions
src/insights/track_position_window.py - Tyre strategy
src/insights/tyre_strategy_window.py - Race control feed
src/insights/race_control_feed_window.py - Stream viewer
src/insights/telemetry_stream_viewer.py
Analysis and services
- Telemetry stream
src/services/stream.py - Bayesian tyre model
src/bayesian_tyre_model.py - Tyre degradation
src/tyre_degradation_integration.py - Time utilities
src/lib/time.py - Tyre utilities
src/lib/tyres.py
Other components
- Race viewer
Connections 36
- Race viewer → GUI selector: chooses session
README.md - Race viewer → CLI selector: chooses session
README.md - Application entry → GUI selector: opens by default
main.py - Application entry → CLI selector: dispatches CLI
main.py - Application entry → Season defaults: gets default year
main.py - GUI selector → App settings: opens settings
src/gui/race_selection.py - Application entry → Session telemetry: loads and processes
main.py - Application entry → Replay launcher: starts race replay
main.py - Application entry → Qualifying replay: starts qualifying replay
main.py - Replay launcher → Race replay: creates window
src/run_session.py - Replay launcher → Insights menu: launches menu
src/run_session.py - Race replay → Session telemetry: uses telemetry
src/interfaces/race_replay.py - Race replay → Replay HUD: uses components
src/interfaces/race_replay.py - Qualifying replay → Session telemetry: uses telemetry
src/interfaces/qualifying.py - Qualifying replay → Replay HUD: uses components
src/interfaces/qualifying.py - Insights menu → Driver telemetry: launches view
src/gui/insights_menu.py - Insights menu → Lap time charts: launches view
src/gui/insights_menu.py - Insights menu → Track positions: launches view
src/gui/insights_menu.py - Insights menu → Tyre strategy: launches view
src/gui/insights_menu.py - Insights menu → Race control feed: launches view
src/gui/insights_menu.py - Driver telemetry → Pit wall window: extends window
src/insights/driver_telemetry_window.py - Lap time charts → Pit wall window: extends window
src/insights/lap_time_chart_window.py - Track positions → Pit wall window: extends window
src/insights/track_position_window.py - Tyre strategy → Pit wall window: extends window
src/insights/tyre_strategy_window.py - Race control feed → Pit wall window: extends window
src/insights/race_control_feed_window.py - Stream viewer → Telemetry stream: receives telemetry
src/insights/telemetry_stream_viewer.py - Race replay → Telemetry stream: publishes telemetry
src/interfaces/race_replay.py - Tyre degradation → Bayesian tyre model: uses model
src/tyre_degradation_integration.py - Replay HUD → Tyre degradation: uses degradation
src/ui_components.py - Replay HUD → Time utilities: formats times
src/ui_components.py - Race replay → Time utilities: uses time helpers
src/interfaces/race_replay.py - Session telemetry → Time utilities: uses time helpers
src/f1_data.py - Session telemetry → Tyre utilities: uses tyre helpers
src/f1_data.py - Race replay → Tyre utilities: uses tyre helpers
src/interfaces/race_replay.py - Lap time charts → Time utilities: uses time helpers
src/insights/lap_time_chart_window.py - Lap time charts → Tyre utilities: uses tyre helpers
src/insights/lap_time_chart_window.py