.add_distance() not working anymore? #131
markste-in
started this conversation in
General
Replies: 1 comment 4 replies
-
It does work as expected. It's not a problem of add_distance. There are some laps that are missing the necessary timestamps to get the telemetry data. get_car_data will return an empty Telemetry object and then you'll get the error in add_distance. FastF1 should handle this better or maybe raise a separate exception for this, I guess. Something else I noticed, you should not iterate over event.laps.Drivers for this. It's a Series with one entry for each lap! You could use event.laps.Drivers.unique() or just event.drivers |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used the .add_distance() function a few times before but somehow it is not woking anymore isn't it? Or is it depreciated?
Minimal Code Example:
Result:
Beta Was this translation helpful? Give feedback.
All reactions