br-g / openf1

OpenF1 API - Real-time and historical Formula 1 data
Other
398 stars 22 forks source link

Duplicated laps in stints #89

Open Lidobix opened 4 months ago

Lidobix commented 4 months ago

On some stints, the "lap_end" of a stint may be equal to the "lap_start" of the next stint. Here for Hungary Race 2024 with Hamilton and Leclerc. this leads to a total laps of 71 instead of 70: [ { "meeting_key": 1241, "session_key": 9566, "stint_number": 1, "driver_number": 16, "lap_start": 1, "lap_end": 23, "compound": "MEDIUM", "tyre_age_at_start": 0 }, { "meeting_key": 1241, "session_key": 9566, "stint_number": 2, "driver_number": 16, "lap_start": 24, "lap_end": 41, "compound": "HARD", "tyre_age_at_start": 0 }, { "meeting_key": 1241, "session_key": 9566, "stint_number": 3, "driver_number": 16, "lap_start": 41, "lap_end": 71, "compound": "MEDIUM", "tyre_age_at_start": 0 } ]

[ { "meeting_key": 1241, "session_key": 9566, "stint_number": 1, "driver_number": 44, "lap_start": 1, "lap_end": 16, "compound": "MEDIUM", "tyre_age_at_start": 0 }, { "meeting_key": 1241, "session_key": 9566, "stint_number": 2, "driver_number": 44, "lap_start": 17, "lap_end": 41, "compound": "HARD", "tyre_age_at_start": 0 }, { "meeting_key": 1241, "session_key": 9566, "stint_number": 3, "driver_number": 44, "lap_start": 41, "lap_end": 71, "compound": "HARD", "tyre_age_at_start": 0 } ]