MCPcopy Create free account

hub / github.com/IAmTomShaw/f1-race-replay / functions

Functions482 in github.com/IAmTomShaw/f1-race-replay

↓ 573 callersMethodget
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 callersMethoddraw
(self, window)
src/ui_components.py:26
↓ 22 callersMethodflash_button
Trigger a visual flash effect for a button (used for keyboard feedback).
src/ui_components.py:1726
↓ 16 callersMethodset_visible
Set visibility of legend to True
src/ui_components.py:63
↓ 16 callersMethodstart
(self)
src/services/stream.py:23
↓ 13 callersMethod_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 callersFunctionget_tyre_compound_int
(compound_str)
src/lib/tyres.py:11
↓ 13 callersMethodhide
(self)
src/ui_components.py:1066
↓ 12 callersMethod_is_gap_mode
(self)
src/insights/lap_time_chart_window.py:642
↓ 12 callersFunction_maybe_get
(name)
src/f1_data.py:745
↓ 12 callersFunction_resample
(series)
src/f1_data.py:752
↓ 11 callersMethodshow_placeholder_message
(self, insight_name)
src/gui/insights_menu.py:275
↓ 10 callersMethod_broadcast_telemetry_state
Broadcast current telemetry state to connected clients.
src/interfaces/race_replay.py:232
↓ 10 callersMethod_point_in_rect
Check if point is inside rectangle.
src/ui_components.py:1932
↓ 10 callersMethodclose
Clean up resources when window closes.
src/interfaces/race_replay.py:1693
↓ 9 callersMethodstop
(self)
src/services/stream.py:78
↓ 8 callersMethod_push_undo_state
(self)
src/insights/lap_time_chart_window.py:996
↓ 8 callersMethod_redraw_now
(self)
src/insights/lap_time_chart_window.py:1059
↓ 8 callersFunctionenable_cache
()
src/f1_data.py:17
↓ 8 callersMethodupdate
(self)
src/insights/lap_time_chart_window.py:284
↓ 7 callersMethod_request_live_render
(self, immediate=False)
src/insights/lap_time_chart_window.py:529
↓ 6 callersFunction_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 callersMethod_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 callersFunction_pos_at_dist
Get (x, y) on the reference line at a given cumulative distance (wraps around).
src/f1_data.py:288
↓ 6 callersFunction_safe_str
Convert a value to string, returning '' for None/NaN.
src/f1_data.py:694
↓ 6 callersMethod_update_history_buttons
(self)
src/insights/lap_time_chart_window.py:1049
↓ 6 callersMethoddraw_hover_effect
Draw hover outline effect for a button if it's currently hovered.
src/ui_components.py:1754
↓ 5 callersFunction_entry_is_out_lap
(entry)
src/insights/lap_time_chart_window.py:203
↓ 5 callersFunction_entry_is_pit_affected
(entry, pit_threshold)
src/insights/lap_time_chart_window.py:193
↓ 5 callersMethod_official_gap_to_leader_s
(self, entry)
src/insights/lap_time_chart_window.py:563
↓ 5 callersMethod_overlay_reset
(self)
src/insights/lap_time_chart_window.py:510
↓ 5 callersMethodcreate_category_section
(self, category_name, insights)
src/gui/insights_menu.py:129
↓ 5 callersMethodload
Load settings from the JSON file.
src/lib/settings.py:55
↓ 5 callersMethodrun
(self)
src/services/stream.py:103
↓ 5 callersMethodworld_to_screen
(self, x, y)
src/interfaces/race_replay.py:1248
↓ 4 callersMethod_begin_zoom_gesture
(self)
src/insights/lap_time_chart_window.py:2442
↓ 4 callersMethod_clear_lines
(self)
src/insights/driver_telemetry_window.py:275
↓ 4 callersMethod_draw_flag_segment
(self, event: dict, color: tuple)
src/ui_components.py:1489
↓ 4 callersFunction_entry_is_outlier
(entry, pit_threshold)
src/insights/lap_time_chart_window.py:207
↓ 4 callersMethod_invalidate_hover_screen_cache
(self, refresh_delay_ms=80)
src/insights/lap_time_chart_window.py:506
↓ 4 callersMethod_is_time_mode
(self)
src/insights/lap_time_chart_window.py:639
↓ 4 callersMethod_mark_interaction_activity
(self)
src/insights/lap_time_chart_window.py:2386
↓ 4 callersMethod_official_finish_gap_s
(self, entry)
src/insights/lap_time_chart_window.py:576
↓ 4 callersMethod_overlay_update
(self)
src/insights/lap_time_chart_window.py:514
↓ 4 callersMethod_pan_view_by_fraction
(self, frac_x=0.0, frac_y=0.0)
src/insights/lap_time_chart_window.py:1959
↓ 4 callersMethod_raw_gap_fallback_s
(self, entry, leader_refs=None)
src/insights/lap_time_chart_window.py:596
↓ 4 callersMethod_set_state
Transition between init/waiting/no_data/active states.
src/insights/race_control_feed_window.py:184
↓ 4 callersMethod_set_user_view
(self, xlim, ylim)
src/insights/lap_time_chart_window.py:982
↓ 4 callersMethodload_schedule
(self, year=None, events=None)
src/gui/race_selection.py:149
↓ 4 callersFunctionparse_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 callersMethodworld_to_screen
(self, x, y)
src/interfaces/qualifying.py:727
↓ 3 callersMethod_apply_legend_hover_style
(self, code, active)
src/insights/lap_time_chart_window.py:2168
↓ 3 callersMethod_apply_zoom_from_input
(self, scale_factor, cx, cy)
src/insights/lap_time_chart_window.py:2448
↓ 3 callersMethod_capture_view_snapshot
(self)
src/insights/lap_time_chart_window.py:987
↓ 3 callersFunction_entry_is_pit_entry
(entry)
src/insights/lap_time_chart_window.py:189
↓ 3 callersFunction_format_delta
Format delta time, omitting the '+' sign for exactly 0.0.
src/insights/lap_time_chart_window.py:164
↓ 3 callersMethod_frac_to_index
Binary search cumulative fraction list for the segment index.
src/insights/track_position_window.py:304
↓ 3 callersMethod_gap_ref_s
(self, entry)
src/insights/lap_time_chart_window.py:549
↓ 3 callersFunction_hex_to_rgb01
(colour)
src/insights/lap_time_chart_window.py:78
↓ 3 callersMethod_hide_hover
(self)
src/insights/lap_time_chart_window.py:2333
↓ 3 callersMethod_interpolate_points
(self, xs, ys, interp_points=2000)
src/interfaces/race_replay.py:1138
↓ 3 callersMethod_interpolate_points
(self, xs, ys, interp_points=2000)
src/interfaces/qualifying.py:720
↓ 3 callersFunction_is_clean_timed_entry
(entry, pit_threshold, sc_vsc_laps)
src/insights/lap_time_chart_window.py:218
↓ 3 callersMethod_pos_on_track
Interpolate position along the center polyline for a given fraction [0-1].
src/insights/track_position_window.py:289
↓ 3 callersMethod_redraw
(self, driver_code: str)
src/insights/driver_telemetry_window.py:210
↓ 3 callersMethod_smooth_zoom_factor
(self, scale_factor, *, deadband=0.006, clamp=0.12)
src/insights/lap_time_chart_window.py:2455
↓ 3 callersMethod_status_label
(text: str)
src/insights/track_position_window.py:657
↓ 3 callersMethod_widget_pos_to_data
(self, pointf)
src/insights/lap_time_chart_window.py:2430
↓ 3 callersFunctionconvert_time_to_seconds
(time_val)
src/f1_data.py:971
↓ 3 callersFunctionformat_time
(seconds: float)
src/lib/time.py:6
↓ 3 callersFunctionget_driver_colors
(session)
src/f1_data.py:167
↓ 3 callersFunctionget_season
()
src/lib/season.py:3
↓ 3 callersFunctionload_session
(year, round_number, session_type="R")
src/f1_data.py:157
↓ 3 callersMethodshow_over
(self, left: float, top: float)
src/ui_components.py:1060
↓ 2 callersMethod__init__
(self, code, stints, total_laps, position=None, current_lap=1, parent=None)
src/insights/tyre_strategy_window.py:47
↓ 2 callersMethod__init__
(self, year, parent=None)
src/gui/race_selection.py:23
↓ 2 callersMethod_apply_xmode_labels
(self)
src/insights/driver_telemetry_window.py:141
↓ 2 callersMethod_calculate_bar_dimensions
(self, window)
src/ui_components.py:1344
↓ 2 callersMethod_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 callersMethod_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 callersMethod_compute_mismatch_penalty
( self, compound: str, track_condition: str )
src/bayesian_tyre_model.py:393
↓ 2 callersFunction_contrast_ratio
(fg_hex, bg_hex)
src/insights/lap_time_chart_window.py:107
↓ 2 callersMethod_display_gap_meta
(self, entry, leader_refs=None, code=None)
src/insights/lap_time_chart_window.py:608
↓ 2 callersFunction_dist_of_point
Project a point onto the reference line and return cumulative distance.
src/f1_data.py:301
↓ 2 callersMethod_draw_artists
(self)
src/insights/lap_time_chart_window.py:278
↓ 2 callersMethod_handle_ui_key_event
(self, event)
src/insights/lap_time_chart_window.py:2657
↓ 2 callersFunction_idx_at_dist
Get the reference index at a given cumulative distance (wraps around).
src/f1_data.py:295
↓ 2 callersMethod_is_interaction_hot
(self)
src/insights/lap_time_chart_window.py:2389
↓ 2 callersMethod_is_normal_entry_visible
(self, entry)
src/insights/lap_time_chart_window.py:432
↓ 2 callersMethod_is_terminal_entry_visible
(self, entry, include_final=False)
src/insights/lap_time_chart_window.py:446
↓ 2 callersMethod_load_current_settings
Load current settings values into the UI.
src/gui/settings_dialog.py:106
↓ 2 callersMethod_mark_chart_dirty
(self)
src/insights/lap_time_chart_window.py:519
↓ 2 callersMethod_project_to_reference
(self, x, y)
src/interfaces/race_replay.py:1145
↓ 2 callersMethod_rebuild_hover_screen_cache
(self)
src/insights/lap_time_chart_window.py:2352
↓ 2 callersMethod_redraw
(self)
src/insights/lap_time_chart_window.py:1085
↓ 2 callersMethod_refresh_hover_from_cursor
(self)
src/insights/lap_time_chart_window.py:2369
↓ 2 callersFunction_relative_luminance
(rgb)
src/insights/lap_time_chart_window.py:102
↓ 2 callersMethod_reposition_overlays
Keep the help overlay centered.
src/insights/lap_time_chart_window.py:481
↓ 2 callersMethod_reserve_status_width
(self)
src/insights/lap_time_chart_window.py:820
↓ 2 callersMethod_restore_view_snapshot
(self, snapshot)
src/insights/lap_time_chart_window.py:1006
next →1–100 of 482, ranked by callers