Skip to content

Commit 814de78

Browse files
committed
nit
1 parent 758c02f commit 814de78

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

  • codeclash/analysis/code_evolve

codeclash/analysis/code_evolve/main.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def get_submission_diff_at_round(log_folder: Path, player_name: str, round_num:
5656
def get_submission_diffs_at_round(log_folders: list[Path], player_name: str, round_num: int) -> dict[Path, PatchSet]:
5757
"""Extract submission diffs for a player at a specific round across multiple tournaments."""
5858
diffs = {}
59-
for folder in tqdm(log_folders, desc=f"Loading diffs for round {round_num}"):
59+
for folder in log_folders:
6060
try:
6161
diffs[folder] = get_submission_diff_at_round(folder, player_name, round_num)
6262
except FileNotFoundError as e:
@@ -181,12 +181,10 @@ def collect_data(
181181
models = [x["model_name"].rsplit("/")[-1] for x in yaml.safe_load(f)]
182182

183183
with open(data_cache, mode) as f:
184-
for i in range(0, len(models)):
185-
for j in range(0, len(models)):
186-
if i == j:
187-
continue
188-
for round in TARGET_ROUNDS:
189-
if round != 1:
184+
for round in TARGET_ROUNDS:
185+
for i in range(0, len(models)):
186+
for j in range(0, len(models)):
187+
if i == j:
190188
continue
191189
if (
192190
tag_to_str(

0 commit comments

Comments
 (0)