diff --git a/app.py b/app.py index 100b213..efc4599 100644 --- a/app.py +++ b/app.py @@ -1,5 +1,6 @@ """Dash app layout and callbacks.""" +import warnings from collections import Counter from pathlib import Path from typing import Iterable, TypeAlias @@ -19,6 +20,9 @@ # Silent SettingWithCopyWarning pd.options.mode.chained_assignment = None +# Silent Fastf1 FutureWarning regarding the use of plotting functions +warnings.filterwarnings(action="ignore", message="Driver", category=FutureWarning) + Session_info: TypeAlias = tuple[int, str, list[str]] # must not be modified diff --git a/pyproject.toml b/pyproject.toml index ca5b557..238d51a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ description = "Transformed data and visualization tools for all Formula 1 races readme = "README.md" requires-python = ">=3.10" dependencies = [ - "fastf1 >= 3.3.0, < 3.4.0", + "fastf1 >= 3.4.0", "pandas >= 1.5.0", "matplotlib >= 3.7.0", "numpy >= 1.26.0, < 2.0.0",