Skip to content

Commit

Permalink
Only load algos configuration files with .yaml suffix
Browse files Browse the repository at this point in the history
Fixing the following warning during benchmark run
./cuvs_benchmarks/lib/python3.12/site-packages/cuvs_bench/run/run.py:186: UserWarning: Could not load YAML config ./lib/python3.12/site-packages/cuvs_bench/run/../config/algos/__pycache__ due to [Errno 21] Is a directory: '
  warnings.warn(f"Could not load YAML config {algo_f} due to {e}")

Signed-off-by: Lizhen You <[email protected]>
  • Loading branch information
LizYou committed Dec 28, 2024
1 parent b3ce774 commit 1af6427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cuvs_bench/cuvs_bench/run/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def gather_algorithm_configs(
algos_conf_fs = [
os.path.join(scripts_path, "../config", "algos", f)
for f in algos_conf_fs
if ".json" not in f and "constraint" not in f and ".py" not in f
if f.endswith(".yaml")
]

if configuration:
Expand Down

0 comments on commit 1af6427

Please sign in to comment.