From 43922c026434e95137829940c6992aad87b29922 Mon Sep 17 00:00:00 2001 From: manpean <71012769+manpean@users.noreply.github.com> Date: Sun, 5 Nov 2023 09:49:14 +0100 Subject: [PATCH 1/2] race_control_messages Lap _api.py Added the colum lap to race_control_messages --- fastf1/_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fastf1/_api.py b/fastf1/_api.py index 0a1997519..1c3a16d73 100644 --- a/fastf1/_api.py +++ b/fastf1/_api.py @@ -1361,11 +1361,11 @@ def race_control_messages(path, response=None, livedata=None): data = { 'Time': [], 'Category': [], 'Message': [], 'Status': [], - 'Flag': [], 'Scope': [], 'Sector': [], 'RacingNumber': [] + 'Flag': [], 'Scope': [], 'Sector': [], 'RacingNumber': [], 'Lap': [] } data_keys = ('Category', 'Message', 'Status', 'Flag', 'Scope', 'Sector', - 'RacingNumber') - converters = (str, str, str, str, str, int, str) + 'RacingNumber', 'Lap') + converters = (str, str, str, str, str, int, str, int) for line in response: messages = line[1]['Messages'] From 0e848efc7dac97aabbd14ff8dea163fe37925f8b Mon Sep 17 00:00:00 2001 From: manpean <71012769+manpean@users.noreply.github.com> Date: Tue, 7 Nov 2023 19:51:23 +0100 Subject: [PATCH 2/2] Update _api.py --- fastf1/_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fastf1/_api.py b/fastf1/_api.py index 1c3a16d73..a2308e51e 100644 --- a/fastf1/_api.py +++ b/fastf1/_api.py @@ -1330,6 +1330,7 @@ def race_control_messages(path, response=None, livedata=None): - Scope (str): Scope of message "Track", "Sector", "Driver" - Sector (int): Affected track sector for sector-scoped messages - RacingNumber (str): Affected driver for CarEvent messages + - Lap (int): Number of the lap in which the message was displayed Args: path (str): api path base string (usually ``Session.api_path``)