Skip to content

Error mapping teamcolors to driver #168

Answered by walteij
walteij asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm, found another thing that seems to be related. I tried to use the qualification result from the documentation, and here I'm getting a different error, but it is related to the team color mapping. I am using version = '2.2.4'

Traceback (most recent call last):
  File "C:\Users\WaltervanEijk\OneDrive - BORG-OSC\Documenten\DiscordBot\plots\old\plot_qualifying_results (4).py", line 79, in <module>
    color = fastf1.plotting.team_color(lap['Team'])
  File "C:\Users\WaltervanEijk\AppData\Roaming\Python\Python39\site-packages\fastf1\plotting.py", line 182, in team_color
    if identifier.upper() in TEAM_TRANSLATE:
AttributeError: 'NaTType' object has no attribute 'upper'

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@walteij
Comment options

Answer selected by walteij
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant