Replies: 80 comments 1 reply
-
Try to convert the timedelta values to seconds maybe. I think Matplotlib doesn't like the timedelta data type. What exactly do you mean with speed delta? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. I mean a function similar to Timedelta, only that it traces the line of the difference between the speeds of two drivers. I don't know if I explained myself well |
Beta Was this translation helpful? Give feedback.
-
I am planning to implement something like that, yes. In theory, you only need to "subtract" the two laps. But it is not actually that easy. To do this properly, you need to compare the time difference in relation to the on-track position. This means a relation between time and covered lap distance needs to be made first. Furthermore, this needs to be very exact if we want the data to be meaningful. |
Beta Was this translation helpful? Give feedback.
-
Another question: is it possible to put an example on the documentation of how the Track class works, and what can you actually do with it? |
Beta Was this translation helpful? Give feedback.
-
Currently, there is "Distance to Driver Ahead" available as a calculated additional info. It is somewhat complicated to calculate this. The track class is intended to serve as a more universal interface for calculating things like this. There should be a better documentation, yes. But due to some changes to the position data by F1, it does not work with the 2020 season. Some major changes are necessary to make it work again. And I'm not motivated to write documentation for something that doesn't work anymore and needs to be changed anyways. Maybe I'll add a more obvious notice about the fact that it doesn't work anymore. |
Beta Was this translation helpful? Give feedback.
-
Maybe you are interested in this: https://theoehrly.github.io/Fast-F1/utils.html#fastf1.utils.delta_time It's the delta time not the delta speed though. I merged this while integrating a newer version of the original codebase. I have not tried or tested it really so I can not speak to the accuracy of the result. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Both of these things should be possible. But there's currently no easy way to do this. I very much want to add functionality to do this. But I probably won't get to it very soon. |
Beta Was this translation helpful? Give feedback.
-
Hello. I use this issue to ask a question without opening another one.is it possible to do the plotting of all the telemetry for all the laps of the race for example? let me explain if I want to see the graph of the speed of the car for the whole length of the race, how can I do? |
Beta Was this translation helpful? Give feedback.
-
If I understand you right, this is what you are looking for:
And the 'Space' data is not available here. You can only use 'Time' as a reference. This is not documented but should be. I'll add it to the ToDo list. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
This really should work. Did you run exactly the example code for a test? You need to call |
Beta Was this translation helpful? Give feedback.
-
ok, found why it didn't work. if it has enabled fast-f1 cache, the program breaks. (I already had the data of the race in question in the cache folder) |
Beta Was this translation helpful? Give feedback.
-
Yes, that makes sense. The cache is not very intelligent currently in that regard and does not get updated. |
Beta Was this translation helpful? Give feedback.
-
Hi, why are there no telemetric data and LapTime of the first lap of each race? API problem? Or FastF1 problem? |
Beta Was this translation helpful? Give feedback.
-
This is not corresponding to the minisectors that may show on the F1 app, this simply divides the circuit up into equal distance sectors and shows the driver with the highest average speed within that sector. At the moment I am only taking the drivers' best laptime from the session. I'm not sure how to accurately verify this. |
Beta Was this translation helpful? Give feedback.
-
@hash55 @siddharth-tewari I am thinking of posting a repository on my profile, maybe that will work. |
Beta Was this translation helpful? Give feedback.
-
@theOllieS Ok, Thank You |
Beta Was this translation helpful? Give feedback.
-
@theOllieS Yup, thanks! |
Beta Was this translation helpful? Give feedback.
-
@theOllieS I like the idea of basing this on the highest average speed. I think it might actually yield a pretty good result. But, from experience, I have learned that you should never trust your results without verifying them somehow. I've created good-looking plots that were absolutely wrong in the past. Although, I don't have a good idea right away on how you could verify this. |
Beta Was this translation helpful? Give feedback.
-
Here is what I would do. (It's not the best option but an initial estimation.) Instead of loading data of all drivers, it would be nice to load just two of them, specifically the fastest lap of Q3. By doing that, you can compare it with the analysis the official F1 Youtube channel sometimes upload. Hamilton vs Vettel USA 2018 |
Beta Was this translation helpful? Give feedback.
-
Agreed, generally I just apply the sanity check of which cars are typically fast in certain mini sector types. For example, Alfa Romeo are normally very fast at the end of straights, Ferrari are strong in slow corners and the acceleration zones out of them, Merc are good on high speed corners etc. The results tend to agree with this. |
Beta Was this translation helpful? Give feedback.
-
@hash55 thank you for this, I like this idea. I have found some more examples of these on scuderiafans.com from various sessions. I will try and compare my results to these and show you guys where the differences are. |
Beta Was this translation helpful? Give feedback.
-
@hash55 @theOehrly I have uploaded some of my results and findings from comparing my minisector head to head results to the official F1 data onto my profile https://github.com/theOllieS/F1-Minisectors-Verification/issues/1 if you are interested. There were so many attachments that I didn't want to clog up this discussion thread so I thought my profile might be a better place. |
Beta Was this translation helpful? Give feedback.
-
@theOehrly Hello, I have a question that when is Young Drivers Test and will it be available to view on TV and will telemetry, lap times etc. be available from Fast-F1? |
Beta Was this translation helpful? Give feedback.
-
I don't know if it is broadcasted. I wouldn't think so. |
Beta Was this translation helpful? Give feedback.
-
@JSEHV By the way, in case you're reading this, I have finally added one of your cool looking example plots to the examples gallery. Sorry that it took so long. I appreciate the effort that you put into it. |
Beta Was this translation helpful? Give feedback.
-
@theOehrly Hello, can you fix this if possible? import fastf1
import fastf1 as ff1
year = input("Enter the Year: ")
race = input("Enter the Race Number/Name: ")
if type(race) == int:
raceName = race
elif type(race) == float:
raceName = race
elif type(race) == str:
raceName = "'" + race + "'"
weekend = ff1.get_session(year, raceName)
lap = fastf1.core.Session(weekend, 'Race')
options = fastf1.api.pages= { 'race_control_messages': 'RaceControlMessages.json', 'team_radio': 'TeamRadio.jsonStream'}
link = fastf1.api.fetch_page(lap, 'team_radio')
print(link) |
Beta Was this translation helpful? Give feedback.
-
I have created a discussion now from this very general question and suggestions 'issue' thread. |
Beta Was this translation helpful? Give feedback.
-
Hi, how can I make a Boxplot of the times with a type of rubber? I tried, but he tells me he doesn't accept timedelta
Also, is it possible to implement a function for the SpeedDelta?
Beta Was this translation helpful? Give feedback.
All reactions