Is there a way to acquire driver gaps at the end of each lap? #503
-
Hi I'm working on acquiring a dataset for a Machine learning strategy model for a University project and I am trying to get the lap by lap intervals between each drivers. I have used fastf1.api.timing_data and the stream_data object but it gives that data for multiple samples per lap. I was just wondering if there's a good way of extracting this information for the end of each lap? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
One of those samples is always taken at the finish line. They timestamps line up reasonably well with the timing data. Therefore you can use the sample with the smallest absolute difference between its timestamp and the time at which the lap was set. I'm using the following code internally for the same problem:
|
Beta Was this translation helpful? Give feedback.
One of those samples is always taken at the finish line. They timestamps line up reasonably well with the timing data. Therefore you can use the sample with the smallest absolute difference between its timestamp and the time at which the lap was set.
I'm using the following code internally for the same problem: