Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carneiro-cw committed Dec 3, 2024
1 parent c88e809 commit 7bd7b94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/benchmark_rocks_config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ def save_results(config_file: Path, results):
result_dir.mkdir(parents=True, exist_ok=True)

# Copy config file
shutil.copy(config_file, result_dir / config_file)
shutil.copy(config_file, result_dir / config_file.name) # Use config_file.name instead of full path

# Save results
with open(result_dir / "results.json", "w") as f:
result_file = result_dir / "results.json"
with open(str(result_file), "w") as f: # Convert Path to string
json.dump(results, f, indent=2)

print(f"Results saved in {result_dir}")
Expand Down

0 comments on commit 7bd7b94

Please sign in to comment.