Skip to content

Commit

Permalink
Fixing small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cjnolet committed Dec 5, 2023
1 parent 8e1c62c commit e79c3fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/raft-ann-bench/src/raft-ann-bench/run/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def run_build_and_search(
):
for executable, ann_executable_path, algo in executables_to_run.keys():
# Need to write temporary configuration
print("ALGO: %s" % algo)
temp_conf_filename = f"{conf_filename}_{algo}_{uuid.uuid1()}.json"
with open(temp_conf_filename, "w") as f:
temp_conf = dict()
Expand Down Expand Up @@ -574,8 +575,8 @@ def add_algo_group(group_list):
index["search_params"].append(search_dict)
executables_to_run[executable]["index"].append(index)

if len(index["search_params"]) == 0:
print("No search parameters were added to configuration")
if len(index["search_params"]) == 0:
print("No search parameters were added to configuration")

run_build_and_search(
conf_file,
Expand Down

0 comments on commit e79c3fa

Please sign in to comment.