Skip to content

Commit

Permalink
Write valid json
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbinBouwmeester committed Jul 9, 2023
1 parent 6d82eff commit e69bf0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions proteobench/github/gh.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,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.to_json(
f,
lines=True,
orient="records"
orient="records",
indent=2
)

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

Expand Down

0 comments on commit e69bf0c

Please sign in to comment.