MCPcopy Create free account

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

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

↓ 2 callersFunction_rgb01_to_hex
(rgb)
src/insights/lap_time_chart_window.py:88
↓ 2 callersMethod_set_legend_hover_code
(self, code)
src/insights/lap_time_chart_window.py:2147
↓ 2 callersMethod_set_lines
(self, xs, speeds, gears, throttles, brakes)
src/insights/driver_telemetry_window.py:269
↓ 2 callersMethod_set_view_mode
Toggle between Real Track and Schematic circle views.
src/insights/track_position_window.py:581
↓ 2 callersMethod_setup_axes
Apply consistent styling to the axes.
src/insights/lap_time_chart_window.py:830
↓ 2 callersMethod_show_hover_info
(self, info, leader_refs)
src/insights/lap_time_chart_window.py:2219
↓ 2 callersFunction_terminal_status_display_text
(status)
src/insights/lap_time_chart_window.py:242
↓ 2 callersMethod_visible_entry_signature
(self)
src/insights/lap_time_chart_window.py:457
↓ 2 callersMethod_x_to_frame
(self, x: float)
src/ui_components.py:1366
↓ 2 callersFunctionbuild_track_from_example_lap
(example_lap, track_width=200)
src/ui_components.py:2222
↓ 2 callersFunctiondraw_finish_line
(self, session_type = 'R')
src/ui_components.py:2285
↓ 2 callersFunctionget_driver_quali_telemetry
(session, driver_code: str, quali_segment: str)
src/f1_data.py:990
↓ 2 callersMethodget_health_for_frame
Get health from frame - compatible with existing UI.
src/tyre_degradation_integration.py:82
↓ 2 callersFunctionget_leader_info
Get the race leader's (code, x, y, track_dist, total_progress).
src/f1_data.py:352
↓ 2 callersFunctionget_race_weekends_by_year
Returns a list of race weekends for a given year.
src/f1_data.py:1415
↓ 2 callersFunctionget_settings
Get the global settings manager instance.
src/lib/settings.py:126
↓ 2 callersFunctionget_tyre_compound_str
(compound_int)
src/lib/tyres.py:14
↓ 2 callersMethodis_lap_complete
Check if the current lap has finished playing.
src/interfaces/qualifying.py:777
↓ 2 callersMethodreset
(self)
src/insights/lap_time_chart_window.py:265
↓ 2 callersMethodsave
Save current settings to the JSON file.
src/lib/settings.py:68
↓ 2 callersMethodset
Set a setting value. Args: key: The setting key to set. value: The value to store.
src/lib/settings.py:90
↓ 2 callersMethodset_entries
(self, entries: List[Tuple[str, Tuple[int,int,int], dict, float]])
src/ui_components.py:294
↓ 2 callersMethodset_font_sizes
(self, header_font_size: int = None, body_font_size: int = None)
src/ui_components.py:1045
↓ 2 callersMethodset_info
(self, info: Optional[dict])
src/ui_components.py:165
↓ 2 callersMethodset_size
(self, width: int, height: int)
src/ui_components.py:1040
↓ 2 callersMethodtoggle_visibility
Toggle the visibility of the legend
src/ui_components.py:56
↓ 2 callersMethodupdate_scaling
Recalculates the scale and translation to fit the track perfectly within the new screen dimensions while maintaining aspect ratio.
src/interfaces/race_replay.py:1172
↓ 2 callersMethodupdate_scaling
Recalculates the scale and translation to fit the track perfectly within the new screen dimensions while maintaining aspect ratio.
src/interfaces/qualifying.py:160
↓ 1 callersMethod__init__
(self, parent=None)
src/insights/track_position_window.py:44
↓ 1 callersMethod__init__
(self, host='localhost', port=9999)
src/services/stream.py:15
↓ 1 callersFunction_accent_for_event
Return accent hex colour for a race control event.
src/insights/race_control_feed_window.py:59
↓ 1 callersMethod_add_event_item
Append a formatted event to the text browser.
src/insights/race_control_feed_window.py:242
↓ 1 callersMethod_append_sample
(self, code: str, driver: dict, session_t: float)
src/insights/driver_telemetry_window.py:157
↓ 1 callersMethod_apply_zoom
Apply zoom centered on (cx, cy) with strict clamping.
src/insights/lap_time_chart_window.py:2485
↓ 1 callersMethod_attach_replay_aligned_lap_times
(result, replay_time_offset_s, fallback_result=None)
src/interfaces/race_replay.py:864
↓ 1 callersMethod_calculate_gaps
(self)
src/ui_components.py:299
↓ 1 callersFunction_clean_sector
Return a clean sector string, or empty if NaN / empty.
src/insights/race_control_feed_window.py:70
↓ 1 callersMethod_compute_fallback_lap_times_raw
(frames, min_lap_time_s=30.0, max_lap_time_s=7200.0)
src/interfaces/race_replay.py:959
↓ 1 callersMethod_compute_lap_times
Scan the full frame array once to build deterministic lap times for every driver. Returns {code: [{lap, time_s, end_time_s, tyre}, .
src/interfaces/race_replay.py:337
↓ 1 callersMethod_compute_latent_states
(self, laps_df: pd.DataFrame)
src/bayesian_tyre_model.py:415
↓ 1 callersFunction_compute_safety_car_positions
Simulate safety car (SC) positions for each frame based on track status. The F1 API does not provide SC GPS data, so we simulate it:
src/f1_data.py:184
↓ 1 callersMethod_compute_status_laps
Map track status periods to leader lap numbers. Returns a list of {"status": str, "start_lap": int, "end_lap": int}. Status
src/interfaces/race_replay.py:1088
↓ 1 callersMethod_compute_warmup_penalty
(self, tyre: TyreProfile, lap_on_tyre: int)
src/bayesian_tyre_model.py:516
↓ 1 callersMethod_connect_to_server
(self)
src/services/stream.py:121
↓ 1 callersMethod_create_overlays
(self)
src/insights/lap_time_chart_window.py:777
↓ 1 callersMethod_default_lines
(self)
src/ui_components.py:1024
↓ 1 callersMethod_display_gap_value
(self, entry, leader_refs=None, code=None)
src/insights/lap_time_chart_window.py:645
↓ 1 callersFunction_display_safe_colour
(colour, bg_colour=_BG, min_contrast=3.2)
src/insights/lap_time_chart_window.py:126
↓ 1 callersMethod_draw_distance_markers
(self, painter, cx, cy, radius, sf_angle)
src/insights/track_position_window.py:422
↓ 1 callersMethod_draw_driver
(self, painter, x, y, angle, code, color, cx, cy, radius)
src/insights/track_position_window.py:485
↓ 1 callersMethod_draw_driver_dot
(self, painter, x, y, code, color)
src/insights/track_position_window.py:317
↓ 1 callersMethod_draw_event_marker
Draw a single event marker based on type.
src/ui_components.py:1459
↓ 1 callersMethod_draw_forward_icon
(self, x: float, y: float)
src/ui_components.py:1792
↓ 1 callersMethod_draw_info_box
(self, window, code, driver_pos, center_y, box_width, box_height)
src/ui_components.py:863
↓ 1 callersMethod_draw_leader_arrow
(self, painter, angle, cx, cy, radius)
src/insights/track_position_window.py:460
↓ 1 callersMethod_draw_leader_arrow_at
(self, painter, x, y, angle)
src/insights/track_position_window.py:342
↓ 1 callersMethod_draw_legend
Draw a small legend explaining the markers.
src/ui_components.py:1578
↓ 1 callersMethod_draw_pause_icon
(self, x: float, y: float)
src/ui_components.py:1779
↓ 1 callersMethod_draw_play_icon
(self, x: float, y: float)
src/ui_components.py:1766
↓ 1 callersMethod_draw_real_distance_markers
(self, painter, to_widget)
src/insights/track_position_window.py:257
↓ 1 callersMethod_draw_rewind_icon
(self, x: float, y: float)
src/ui_components.py:1805
↓ 1 callersMethod_draw_sf_line
(self, painter, cx, cy, radius, angle)
src/insights/track_position_window.py:401
↓ 1 callersMethod_draw_speed_comp
Draw speed multiplier text.
src/ui_components.py:1818
↓ 1 callersMethod_draw_stint_bands
Draw faint tyre-coloured background bands behind the focused driver's line, and return stint averages.
src/insights/lap_time_chart_window.py:1878
↓ 1 callersMethod_draw_tooltip
(self, window, event: dict)
src/ui_components.py:1531
↓ 1 callersMethod_ensure_buffers
(self, code: str)
src/insights/driver_telemetry_window.py:151
↓ 1 callersMethod_ensure_color
(self, code: str)
src/insights/track_position_window.py:663
↓ 1 callersMethod_entry_completion_visibility_time_s
(self, entry)
src/insights/lap_time_chart_window.py:418
↓ 1 callersFunction_entry_has_gap_discontinuity
(entry, pit_threshold, sc_vsc_laps)
src/insights/lap_time_chart_window.py:230
↓ 1 callersMethod_estimate_official_replay_time_offset
(official_result, fallback_result)
src/interfaces/race_replay.py:836
↓ 1 callersMethod_estimate_parameters
(self, laps_df: pd.DataFrame)
src/bayesian_tyre_model.py:298
↓ 1 callersMethod_fill_missing_official_tyre_life
(result)
src/interfaces/race_replay.py:903
↓ 1 callersMethod_find_hover_info_by_key
(self, hover_key)
src/insights/lap_time_chart_window.py:2202
↓ 1 callersMethod_flush_live_render
(self)
src/insights/lap_time_chart_window.py:2405
↓ 1 callersFunction_format_time
Convert seconds to HH:MM:SS string.
src/insights/race_control_feed_window.py:49
↓ 1 callersFunction_format_wind_direction
(degrees: Optional[float])
src/ui_components.py:13
↓ 1 callersMethod_get_settings_file_path
Get the path to the settings file. Settings are stored in the user's app data directory for persistence across different working dire
src/lib/settings.py:39
↓ 1 callersMethod_get_tyre_category
(self, compound: str)
src/bayesian_tyre_model.py:270
↓ 1 callersMethod_hovered_legend_code
(self, event)
src/insights/lap_time_chart_window.py:2096
↓ 1 callersMethod_is_approx_time_entry
(self, entry)
src/insights/lap_time_chart_window.py:588
↓ 1 callersMethod_is_over_legend
(self, event)
src/insights/lap_time_chart_window.py:2092
↓ 1 callersMethod_load_state
(self)
src/insights/tyre_strategy_window.py:204
↓ 1 callersFunction_mix_rgb
(rgb_a, rgb_b, amount)
src/insights/lap_time_chart_window.py:119
↓ 1 callersFunction_moving_average
Compute a simple moving average, returning same-length array with NaN padding.
src/insights/lap_time_chart_window.py:175
↓ 1 callersMethod_official_gap_is_approx
(self, entry)
src/insights/lap_time_chart_window.py:571
↓ 1 callersMethod_on_mouse_move
Crosshair + tooltip on hover, and pixel-based drag-to-pan.
src/insights/lap_time_chart_window.py:1991
↓ 1 callersMethod_on_session_button_clicked
Launch main.py in a separate process to run the selected session. Uses the same CLI flags that `main.py` understands: `--qualifying`,
src/gui/race_selection.py:288
↓ 1 callersMethod_paint_circle_track
(self, painter: QPainter)
src/insights/track_position_window.py:368
↓ 1 callersMethod_paint_real_track
(self, painter: QPainter)
src/insights/track_position_window.py:148
↓ 1 callersMethod_prepare_data
Clean and validate lap data.
src/bayesian_tyre_model.py:234
↓ 1 callersMethod_px_to_data_delta
Convert pixel deltas to data-coordinate deltas using the axes transform.
src/insights/lap_time_chart_window.py:1933
↓ 1 callersMethod_rebuild_legend_hitboxes
(self)
src/insights/lap_time_chart_window.py:2120
↓ 1 callersMethod_receive_data
(self)
src/services/stream.py:141
↓ 1 callersMethod_redraw_lap
(self, code: str)
src/insights/driver_telemetry_window.py:243
↓ 1 callersMethod_redraw_time
(self, code: str)
src/insights/driver_telemetry_window.py:222
↓ 1 callersMethod_refresh_driver_list
(self, drivers)
src/insights/lap_time_chart_window.py:930
↓ 1 callersMethod_refresh_driver_list
(self, drivers: dict)
src/insights/driver_telemetry_window.py:193
↓ 1 callersMethod_reset_view
(self)
src/insights/lap_time_chart_window.py:1981
↓ 1 callersMethod_restore_hover_point
(self, hover_key)
src/insights/lap_time_chart_window.py:2212
↓ 1 callersMethod_restore_view_state
(self)
src/insights/lap_time_chart_window.py:974
← previousnext →101–200 of 482, ranked by callers