Skip to content

Commit

Permalink
Merge pull request #231 from unitaryfund/nts-fix-expval-benchmark-pat…
Browse files Browse the repository at this point in the history
…h-bug

Fix relative path bug in expval benchmarking script
  • Loading branch information
natestemen authored Feb 13, 2025
2 parents b92d2fd + e744542 commit 82fe049
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmarks/scripts/plot_latest_expval_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
import pandas as pd
import seaborn as sns

# Directory containing the CSV files
directory = "../results"
directory_of_this_file = os.path.dirname(os.path.abspath(__file__))
results_dir = os.path.join(directory_of_this_file, "../results")

# Initialize a DataFrame to store combined data
data = []

# Process each CSV file
for filepath in glob.glob(os.path.join(directory, "expval_*.csv")):
for filepath in glob.glob(os.path.join(results_dir, "expval_*.csv")):
# Extract the date from the filename
filename = os.path.basename(filepath)
date_str = filename.split("_")[1]
Expand Down

0 comments on commit 82fe049

Please sign in to comment.