From 37ff42e3f608f91420c07be996f1996995ef0d73 Mon Sep 17 00:00:00 2001 From: Casper Guo <89810860+Casper-Guo@users.noreply.github.com> Date: Sun, 28 Apr 2024 13:31:54 -0400 Subject: [PATCH] DOC: Fix Broken Team Pace Ranking Example (#577) --- docs/conf.py | 3 +-- examples/plot_team_pace_ranking.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 59d319b09..e31a5dc34 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -158,8 +158,7 @@ def sphinx_gallery_setup(gallery_conf, fname): plotly_sg_scraper), # for plotly thumbnail 'reset_modules': ('matplotlib', 'seaborn', # defaults sphinx_gallery_setup), # custom setup - 'expected_failing_examples': ('../examples/plot_qualifying_results.py', - '../examples/plot_team_pace_ranking.py'), + 'expected_failing_examples': ('../examples/plot_qualifying_results.py', ), } diff --git a/examples/plot_team_pace_ranking.py b/examples/plot_team_pace_ranking.py index 4e6bc2a66..1087abee2 100755 --- a/examples/plot_team_pace_ranking.py +++ b/examples/plot_team_pace_ranking.py @@ -17,7 +17,7 @@ # Load the race session. # Pick all quick laps (within 107% of fastest lap). # For races with mixed conditions, pick_wo_box() is better. -race = fastf1.get_session(2023, "British Grand Prix", 'R') +race = fastf1.get_session(2024, 1, 'R') race.load() laps = race.laps.pick_quicklaps()