Skip to content

Commit c1422e2

Browse files
committed
fix: only save valid gt time
1 parent a02256f commit c1422e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bigcodebench/evaluate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ def get_groundtruth(n_workers, problems, hashcode, check_gt_only, max_as_limit,
7272

7373
print(f"Expected outputs computed in {time.time() - tbegin:.2f}s")
7474

75-
with open(cache_file, "wb") as f:
76-
pickle.dump(expected_time, f)
75+
if any(expected_time.values()):
76+
with open(cache_file, "wb") as f:
77+
pickle.dump(expected_time, f)
7778

7879
return expected_time
7980

0 commit comments

Comments
 (0)