theOehrly / Fast-F1

FastF1 is a python package for accessing and analyzing Formula 1 results, schedules, timing data and telemetry
https://docs.fastf1.dev
MIT License
2.48k stars 259 forks source link

[ENH] Team and driver colours per season #340

Closed lmontrieux closed 1 year ago

lmontrieux commented 1 year ago

Proposed new feature or change:

At the moment, the mappings between team and colour, and between driver an colour, are valid for the current season only.

Would it make sense to extend this to past seasons as well? If that's of interest I'm happy to give it a shot.

lmontrieux commented 1 year ago

I guess the main problem here would be colour selection. It's pretty easy to list all drivers and constructors per season, the ergast API has that. But colours? I don't know where to find that. Might have to be done manually, which would be quite the undertaking.

lmontrieux commented 1 year ago

Talking about colour selection. It looks like the team colour == the first driver's colour (in some cases we could debate who's the first and second driver until we're all blue in the face but let's not do that now 😄 ). However I wonder how the second driver colours are selected? Is it simply "something that looks a bit lighter", or is it a more precise process to it?

Casper-Guo commented 1 year ago

Similar has been proposed in #218 for your reference but the blocker is finding driver colors like you said

lmontrieux commented 1 year ago

Oh yes, you are right. I missed it somehow. Closing this issue as a duplicate.