Skip to content

Commit

Permalink
Fix dict in several_modes
Browse files Browse the repository at this point in the history
  • Loading branch information
gt22 committed Jan 9, 2025
1 parent 692d7ee commit 394e3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verified_cogen/several_modes/several_modes.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def main():
json_avg_results = results_directory / f"tries_{directory.name}_{mode}_avg.json"
with open(json_avg_results, "w") as f:
json.dump({}, f)
results_avg: Dict[int, float] = dict([(i, 0) for i in range(args.runs + 1)])
results_avg: Dict[int, float] = {i: 0 for i in range(args.tries + 1)}

for run in range(args.runs):
logger.info(f"Run {run}")
Expand Down

0 comments on commit 394e3ce

Please sign in to comment.