From 73225317a5551e604a9fd5cf84d50c9ba1023d6c Mon Sep 17 00:00:00 2001 From: theOehrly <23384863+theOehrly@users.noreply.github.com> Date: Wed, 16 Oct 2024 18:40:03 +0200 Subject: [PATCH] MNT: bump some warnings to make them more visible --- fastf1/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fastf1/core.py b/fastf1/core.py index dfd4fa57..628dbe27 100644 --- a/fastf1/core.py +++ b/fastf1/core.py @@ -2975,7 +2975,7 @@ def pick_lap(self, lap_number: int) -> "Laps": """ warnings.warn(("pick_lap is deprecated and will be removed in a " "future release. Use pick_laps instead."), - DeprecationWarning) + FutureWarning) return self[self['LapNumber'] == lap_number] def pick_laps(self, lap_numbers: Union[int, Iterable[int]]) -> "Laps": @@ -3021,7 +3021,7 @@ def pick_driver(self, identifier: Union[int, str]) -> "Laps": """ warnings.warn(("pick_driver is deprecated and will be removed" " in a future release. Use pick_drivers instead."), - DeprecationWarning) + FutureWarning) identifier = str(identifier) if identifier.isdigit(): return self[self['DriverNumber'] == identifier] @@ -3072,7 +3072,7 @@ def pick_team(self, name: str) -> "Laps": """ warnings.warn(("pick_team is deprecated and will be removed" " in a future release. Use pick_teams instead."), - DeprecationWarning) + FutureWarning) return self[self['Team'] == name] def pick_teams(self, names: Union[str, Iterable[str]]) -> "Laps": @@ -3180,7 +3180,7 @@ def pick_tyre(self, compound: str) -> "Laps": """ warnings.warn(("pick_tyre is deprecated and will be removed" " in a future release. Use pick_compound instead."), - DeprecationWarning) + FutureWarning) return self[self['Compound'] == compound.upper()] def pick_compounds(self, compounds: Union[str, Iterable[str]]) -> "Laps":