Skip to content

Commit

Permalink
Update Fastf1 to 3.4.0 to make 2022 data available
Browse files Browse the repository at this point in the history
Suppress Fastf1 plotting module FutureWarnings
  • Loading branch information
Casper-Guo committed Sep 23, 2024
1 parent a4240dd commit 6c468fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Dash app layout and callbacks."""

import warnings
from collections import Counter
from pathlib import Path
from typing import Iterable, TypeAlias
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6c468fe

Please sign in to comment.