Skip to content

Commit

Permalink
Fixing json parse error in raft-ann-bench.data_export (#2025)
Browse files Browse the repository at this point in the history
Authors:
  - Corey J. Nolet (https://github.com/cjnolet)

Approvers:
  - Divye Gala (https://github.com/divyegala)

URL: #2025
  • Loading branch information
cjnolet authored Nov 29, 2023
1 parent 736a8bf commit ed272c1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ def read_file(dataset, dataset_path, method):
dir = os.path.join(dataset_path, dataset, "result", method)
for file in os.listdir(dir):
if file.endswith(".json"):
with open(os.path.join(dir, file), "r") as f:
with open(
os.path.join(dir, file), "r", encoding="ISO-8859-1"
) as f:
try:
data = json.load(f)
df = pd.DataFrame(data["benchmarks"])
Expand Down

0 comments on commit ed272c1

Please sign in to comment.