-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing small bug in raft-ann-bench #2041
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() | ||
|
@@ -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") | ||
Comment on lines
+577
to
+578
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will the C++ benchmark raise an error if search params are empty? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think so? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, as long as they don't then it's good. Otherwise we should be promoting the error to Python. |
||
|
||
run_build_and_search( | ||
conf_file, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to always print this? Might be good to do logging (maybe future PR?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I just removed it. Didn't realize that was still in there