Skip to content

Commit

Permalink
ENH: Use rapidfuzz instead of thefuzz for fuzzy matching (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
Casper-Guo committed May 7, 2024
1 parent 730d84d commit 89408d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fastf1/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
)
# suppress that warning, it's confusing at best here, we don't need fast
# sequence matching and the installation (on windows) requires some effort
from thefuzz import fuzz
from rapidfuzz import fuzz

import pandas as pd

Expand Down
2 changes: 1 addition & 1 deletion fastf1/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
message="Using slow pure-python SequenceMatcher")
# suppress that warning, it's confusing at best here, we don't need fast
# sequence matching and the installation (on windows) some effort
from thefuzz import fuzz
from rapidfuzz import fuzz


class __TeamColorsWarnDict(dict):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies = [
"requests>=2.28.1",
"requests-cache>=1.0.0",
"scipy>=1.7.3,<2.0.0",
"thefuzz",
"rapidfuzz",
"timple>=0.1.6",
"websockets>=10.3",
]
Expand Down

0 comments on commit 89408d6

Please sign in to comment.