Skip to content

Commit

Permalink
Add deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
mahenning committed Apr 29, 2024
1 parent 55a77b8 commit 69b4e22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scraibe/diarisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ def load_model(cls,
if not os.path.exists(path_to_model):
warnings.warn(f"Model not found at {path_to_model}. \
'Trying to find it nearby .bin files instead.")
warnings.warn(
'Searching for nearby files in a folder path is '
'deprecated and will be removed in future versions.',
category=DeprecationWarning)
# list elementes with the ending .bin
bin_files = [f for f in os.listdir(pwd) if f.endswith(".bin")]
if len(bin_files) == 1:
Expand Down

0 comments on commit 69b4e22

Please sign in to comment.