Skip to content

Commit

Permalink
versions for vm.tsv
Browse files Browse the repository at this point in the history
  • Loading branch information
elazarg committed Aug 11, 2024
1 parent a04571f commit 3b88abf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions experiment/worst/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
numpy==1.26.4
5 changes: 4 additions & 1 deletion save_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ async def relay_qmp_results(qmp_port: int, server: Server) -> None:

results_folder = cwd / "results" / tag
results_folder.mkdir(exist_ok=True, parents=True)
with open(results_folder / "vm.tsv", "w") as f:
version_number = len(
[x for x in results_folder.iterdir() if x.name.startswith("vm_")]
)
with open(results_folder / f"vm_{version_number}.tsv", "w") as f:
for i, p in enumerate(ps):
print(i, p.result(), sep="\t", file=f, flush=True)

Expand Down

0 comments on commit 3b88abf

Please sign in to comment.