Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IAmTomShaw/f1-race-replay
/ functions
Functions
482 in github.com/IAmTomShaw/f1-race-replay
⨍
Functions
482
◇
Types & classes
41
↳
Endpoints
1
↓ 573 callers
Method
get
Get a setting value by key. Args: key: The setting key to retrieve. default: Default value if key doesn't exist.
src/lib/settings.py:76
↓ 78 callers
Method
draw
(self, window)
src/ui_components.py:26
↓ 22 callers
Method
flash_button
Trigger a visual flash effect for a button (used for keyboard feedback).
src/ui_components.py:1726
↓ 16 callers
Method
set_visible
Set visibility of legend to True
src/ui_components.py:63
↓ 16 callers
Method
start
(self)
src/services/stream.py:23
↓ 13 callers
Method
_pick_telemetry_value
Return the first value for keys that exists in tel and is not None. Preserves falsy-but-valid values like 0.0.
src/interfaces/qualifying.py:743
↓ 13 callers
Function
get_tyre_compound_int
(compound_str)
src/lib/tyres.py:11
↓ 13 callers
Method
hide
(self)
src/ui_components.py:1066
↓ 12 callers
Method
_is_gap_mode
(self)
src/insights/lap_time_chart_window.py:642
↓ 12 callers
Function
_maybe_get
(name)
src/f1_data.py:745
↓ 12 callers
Function
_resample
(series)
src/f1_data.py:752
↓ 11 callers
Method
show_placeholder_message
(self, insight_name)
src/gui/insights_menu.py:275
↓ 10 callers
Method
_broadcast_telemetry_state
Broadcast current telemetry state to connected clients.
src/interfaces/race_replay.py:232
↓ 10 callers
Method
_point_in_rect
Check if point is inside rectangle.
src/ui_components.py:1932
↓ 10 callers
Method
close
Clean up resources when window closes.
src/interfaces/race_replay.py:1693
↓ 9 callers
Method
stop
(self)
src/services/stream.py:78
↓ 8 callers
Method
_push_undo_state
(self)
src/insights/lap_time_chart_window.py:996
↓ 8 callers
Method
_redraw_now
(self)
src/insights/lap_time_chart_window.py:1059
↓ 8 callers
Function
enable_cache
()
src/f1_data.py:17
↓ 8 callers
Method
update
(self)
src/insights/lap_time_chart_window.py:284
↓ 7 callers
Method
_request_live_render
(self, immediate=False)
src/insights/lap_time_chart_window.py:529
↓ 6 callers
Function
_format_laptime
Format lap time as M:SS.sss. Uses 1 decimal place for Y-axis labels.
src/insights/lap_time_chart_window.py:149
↓ 6 callers
Method
_frame_to_x
well here convert a frame number to an X position on the bar this must receive clamp=True to prevent out-of-bounds rendering
src/ui_components.py:1348
↓ 6 callers
Function
_pos_at_dist
Get (x, y) on the reference line at a given cumulative distance (wraps around).
src/f1_data.py:288
↓ 6 callers
Function
_safe_str
Convert a value to string, returning '' for None/NaN.
src/f1_data.py:694
↓ 6 callers
Method
_update_history_buttons
(self)
src/insights/lap_time_chart_window.py:1049
↓ 6 callers
Method
draw_hover_effect
Draw hover outline effect for a button if it's currently hovered.
src/ui_components.py:1754
↓ 5 callers
Function
_entry_is_out_lap
(entry)
src/insights/lap_time_chart_window.py:203
↓ 5 callers
Function
_entry_is_pit_affected
(entry, pit_threshold)
src/insights/lap_time_chart_window.py:193
↓ 5 callers
Method
_official_gap_to_leader_s
(self, entry)
src/insights/lap_time_chart_window.py:563
↓ 5 callers
Method
_overlay_reset
(self)
src/insights/lap_time_chart_window.py:510
↓ 5 callers
Method
create_category_section
(self, category_name, insights)
src/gui/insights_menu.py:129
↓ 5 callers
Method
load
Load settings from the JSON file.
src/lib/settings.py:55
↓ 5 callers
Method
run
(self)
src/services/stream.py:103
↓ 5 callers
Method
world_to_screen
(self, x, y)
src/interfaces/race_replay.py:1248
↓ 4 callers
Method
_begin_zoom_gesture
(self)
src/insights/lap_time_chart_window.py:2442
↓ 4 callers
Method
_clear_lines
(self)
src/insights/driver_telemetry_window.py:275
↓ 4 callers
Method
_draw_flag_segment
(self, event: dict, color: tuple)
src/ui_components.py:1489
↓ 4 callers
Function
_entry_is_outlier
(entry, pit_threshold)
src/insights/lap_time_chart_window.py:207
↓ 4 callers
Method
_invalidate_hover_screen_cache
(self, refresh_delay_ms=80)
src/insights/lap_time_chart_window.py:506
↓ 4 callers
Method
_is_time_mode
(self)
src/insights/lap_time_chart_window.py:639
↓ 4 callers
Method
_mark_interaction_activity
(self)
src/insights/lap_time_chart_window.py:2386
↓ 4 callers
Method
_official_finish_gap_s
(self, entry)
src/insights/lap_time_chart_window.py:576
↓ 4 callers
Method
_overlay_update
(self)
src/insights/lap_time_chart_window.py:514
↓ 4 callers
Method
_pan_view_by_fraction
(self, frac_x=0.0, frac_y=0.0)
src/insights/lap_time_chart_window.py:1959
↓ 4 callers
Method
_raw_gap_fallback_s
(self, entry, leader_refs=None)
src/insights/lap_time_chart_window.py:596
↓ 4 callers
Method
_set_state
Transition between init/waiting/no_data/active states.
src/insights/race_control_feed_window.py:184
↓ 4 callers
Method
_set_user_view
(self, xlim, ylim)
src/insights/lap_time_chart_window.py:982
↓ 4 callers
Method
load_schedule
(self, year=None, events=None)
src/gui/race_selection.py:149
↓ 4 callers
Function
parse_time_string
Parse strings like: - "00:01:26:123000" - "00:01:26.123000" - "01:26.123" - "01:26" and return total seconds as float. Returns No
src/lib/time.py:13
↓ 4 callers
Method
world_to_screen
(self, x, y)
src/interfaces/qualifying.py:727
↓ 3 callers
Method
_apply_legend_hover_style
(self, code, active)
src/insights/lap_time_chart_window.py:2168
↓ 3 callers
Method
_apply_zoom_from_input
(self, scale_factor, cx, cy)
src/insights/lap_time_chart_window.py:2448
↓ 3 callers
Method
_capture_view_snapshot
(self)
src/insights/lap_time_chart_window.py:987
↓ 3 callers
Function
_entry_is_pit_entry
(entry)
src/insights/lap_time_chart_window.py:189
↓ 3 callers
Function
_format_delta
Format delta time, omitting the '+' sign for exactly 0.0.
src/insights/lap_time_chart_window.py:164
↓ 3 callers
Method
_frac_to_index
Binary search cumulative fraction list for the segment index.
src/insights/track_position_window.py:304
↓ 3 callers
Method
_gap_ref_s
(self, entry)
src/insights/lap_time_chart_window.py:549
↓ 3 callers
Function
_hex_to_rgb01
(colour)
src/insights/lap_time_chart_window.py:78
↓ 3 callers
Method
_hide_hover
(self)
src/insights/lap_time_chart_window.py:2333
↓ 3 callers
Method
_interpolate_points
(self, xs, ys, interp_points=2000)
src/interfaces/race_replay.py:1138
↓ 3 callers
Method
_interpolate_points
(self, xs, ys, interp_points=2000)
src/interfaces/qualifying.py:720
↓ 3 callers
Function
_is_clean_timed_entry
(entry, pit_threshold, sc_vsc_laps)
src/insights/lap_time_chart_window.py:218
↓ 3 callers
Method
_pos_on_track
Interpolate position along the center polyline for a given fraction [0-1].
src/insights/track_position_window.py:289
↓ 3 callers
Method
_redraw
(self, driver_code: str)
src/insights/driver_telemetry_window.py:210
↓ 3 callers
Method
_smooth_zoom_factor
(self, scale_factor, *, deadband=0.006, clamp=0.12)
src/insights/lap_time_chart_window.py:2455
↓ 3 callers
Method
_status_label
(text: str)
src/insights/track_position_window.py:657
↓ 3 callers
Method
_widget_pos_to_data
(self, pointf)
src/insights/lap_time_chart_window.py:2430
↓ 3 callers
Function
convert_time_to_seconds
(time_val)
src/f1_data.py:971
↓ 3 callers
Function
format_time
(seconds: float)
src/lib/time.py:6
↓ 3 callers
Function
get_driver_colors
(session)
src/f1_data.py:167
↓ 3 callers
Function
get_season
()
src/lib/season.py:3
↓ 3 callers
Function
load_session
(year, round_number, session_type="R")
src/f1_data.py:157
↓ 3 callers
Method
show_over
(self, left: float, top: float)
src/ui_components.py:1060
↓ 2 callers
Method
__init__
(self, code, stints, total_laps, position=None, current_lap=1, parent=None)
src/insights/tyre_strategy_window.py:47
↓ 2 callers
Method
__init__
(self, year, parent=None)
src/gui/race_selection.py:23
↓ 2 callers
Method
_apply_xmode_labels
(self)
src/insights/driver_telemetry_window.py:141
↓ 2 callers
Method
_calculate_bar_dimensions
(self, window)
src/ui_components.py:1344
↓ 2 callers
Method
_clamp_view_limits
(self, new_x_lo, new_x_hi, new_y_lo, new_y_hi)
src/insights/lap_time_chart_window.py:1940
↓ 2 callers
Method
_classify_lap_entries
Enrich lap entries with derived metadata so insight windows can distinguish pit laps, out laps, and generic slow-lap outliers even
src/interfaces/race_replay.py:1000
↓ 2 callers
Method
_compute_mismatch_penalty
( self, compound: str, track_condition: str )
src/bayesian_tyre_model.py:393
↓ 2 callers
Function
_contrast_ratio
(fg_hex, bg_hex)
src/insights/lap_time_chart_window.py:107
↓ 2 callers
Method
_display_gap_meta
(self, entry, leader_refs=None, code=None)
src/insights/lap_time_chart_window.py:608
↓ 2 callers
Function
_dist_of_point
Project a point onto the reference line and return cumulative distance.
src/f1_data.py:301
↓ 2 callers
Method
_draw_artists
(self)
src/insights/lap_time_chart_window.py:278
↓ 2 callers
Method
_handle_ui_key_event
(self, event)
src/insights/lap_time_chart_window.py:2657
↓ 2 callers
Function
_idx_at_dist
Get the reference index at a given cumulative distance (wraps around).
src/f1_data.py:295
↓ 2 callers
Method
_is_interaction_hot
(self)
src/insights/lap_time_chart_window.py:2389
↓ 2 callers
Method
_is_normal_entry_visible
(self, entry)
src/insights/lap_time_chart_window.py:432
↓ 2 callers
Method
_is_terminal_entry_visible
(self, entry, include_final=False)
src/insights/lap_time_chart_window.py:446
↓ 2 callers
Method
_load_current_settings
Load current settings values into the UI.
src/gui/settings_dialog.py:106
↓ 2 callers
Method
_mark_chart_dirty
(self)
src/insights/lap_time_chart_window.py:519
↓ 2 callers
Method
_project_to_reference
(self, x, y)
src/interfaces/race_replay.py:1145
↓ 2 callers
Method
_rebuild_hover_screen_cache
(self)
src/insights/lap_time_chart_window.py:2352
↓ 2 callers
Method
_redraw
(self)
src/insights/lap_time_chart_window.py:1085
↓ 2 callers
Method
_refresh_hover_from_cursor
(self)
src/insights/lap_time_chart_window.py:2369
↓ 2 callers
Function
_relative_luminance
(rgb)
src/insights/lap_time_chart_window.py:102
↓ 2 callers
Method
_reposition_overlays
Keep the help overlay centered.
src/insights/lap_time_chart_window.py:481
↓ 2 callers
Method
_reserve_status_width
(self)
src/insights/lap_time_chart_window.py:820
↓ 2 callers
Method
_restore_view_snapshot
(self, snapshot)
src/insights/lap_time_chart_window.py:1006
next →
1–100 of 482, ranked by callers