Skip to content

Commit

Permalink
Don't remove build json when it fails if we have to search next
Browse files Browse the repository at this point in the history
  • Loading branch information
cjnolet committed Nov 8, 2023
1 parent 0d28f73 commit a72d9ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/raft-ann-bench/src/raft-ann-bench/run/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ def run_build_and_search(
except Exception as e:
print("Error occurred running benchmark: %s" % e)
finally:
os.remove(temp_conf_filename)
if not search:
os.remove(temp_conf_filename)

if search:
search_folder = os.path.join(legacy_result_folder, "search")
Expand Down

0 comments on commit a72d9ca

Please sign in to comment.