Unable to Accurately Calculate Finishing Position by Cumulative Lap Time #354
Answered
by
theOehrly
andrewestes41
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Hey, I'm sorry, but I can't really help you at the moment. The code that you posted doesn't run. Please break it down to a minimal working example. That means, something that I can simply copy and paste to reproduce the problem. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to calculate the position of each driver after each lap in the race (ideally we would know the position at each point in the race but I don't think that data is accessible yet). I am using the 2021 Saudi Arabia race as my test race for now. The issue is the final sorted value is not in the same order of the finishers.
The ending order should result with the point structure: 26, 18, 15, 12, 10, 8, 6, 4, 2, 1, 0, 0
However it is currently showing a final 12, 26, 15, 18, 10, 2, 1, 4, 0, 6, 8, 0
If we take away the pitstop on lap 50, the order is 18, 26, 12, 15, 10, 8, 4, 2, 6, 1, 0, 0.
If we remove all pit stops, there are still incorrect results: 18, 26, 12, 15, 10, 8, 6, 4, 1, 2, 0, 0
Below is the code I'm using. I'd appreciate any assistance on troubleshooting this!
Beta Was this translation helpful? Give feedback.
All reactions