Skip to content

Commit

Permalink
MNT: update internal usage of deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
theOehrly committed Nov 17, 2024
1 parent 140f169 commit 0fabc06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastf1/legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
DRIVER_NUMBER = '33'
LAP_N = 10 # which lap number to plot
drv_laps = session.laps.pick_driver(DRIVER)
drv_laps = session.laps.pick_drivers(DRIVER)
drv_lap = drv_laps[(drv_laps['LapNumber'] == LAP_N)] # select the lap
# create a matplotlib figure
Expand Down Expand Up @@ -191,7 +191,7 @@ def moving_average(a, n=3):
time = session.pos_data[drivers_list[0]]['Time']
pit_mask = np.zeros((stream_length, len(drivers_list)), dtype=bool)
for driver_index, driver_number in enumerate(drivers_list):
laps = session.laps.pick_driver(driver_number)
laps = session.laps.pick_drivers(driver_number)
in_pit = True
times = [[], []]
for lap_index in laps.index:
Expand Down

0 comments on commit 0fabc06

Please sign in to comment.