Skip to content

Commit

Permalink
Merge pull request #70 from Proteobench/fix_json
Browse files Browse the repository at this point in the history
Fix json
  • Loading branch information
RobbinBouwmeester authored Sep 6, 2023
2 parents c342941 + fab9270 commit 5a45b64
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions proteobench/github/gh.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ def write_json_local_development(
print(f"Writing the json to: {fname}")

f = open(os.path.join(t_dir, "results.json"), "w")
all_datapoints.T.to_json(f)

all_datapoints.to_json(
f,
orient="records",
indent=2
)

return os.path.join(t_dir, "results.json")

Expand All @@ -42,7 +47,13 @@ def clone_pr(
# do the pd.write_json() here!!!
print(os.path.join(t_dir, "results.json"))
f = open(os.path.join(t_dir, "results.json"), "w")
all_datapoints.T.to_json(f)

all_datapoints.to_json(
f,
orient="records",
indent=2
)

f.close()
commit_message = "Added new run with id " + branch_name

Expand Down

0 comments on commit 5a45b64

Please sign in to comment.