Skip to content

Commit 7305fb4

Browse files
committed
fixes errors when running in parallel mode
1 parent 0b60e82 commit 7305fb4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

baselines/agents.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def run(
4040
auto_lint = True
4141
else:
4242
auto_lint = False
43+
log_dir = log_dir.resolve()
4344
log_dir.mkdir(parents=True, exist_ok=True)
4445
input_history_file = log_dir / ".aider.input.history"
4546
chat_history_file = log_dir / ".aider.chat.history.md"

commit0/harness/evaluate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def main(
8383
)
8484
continue
8585
report = load_dataset("json", data_files=report_file, split="train") # type: ignore
86-
tests = {x["nodeid"]: x["call"] for x in report["tests"][0]} # type: ignore
86+
tests = {x["nodeid"]: x["call"] for x in report["tests"][0] if "call" in x} # type: ignore
8787
status = []
8888
runtimes = []
8989
no_runs = 0

0 commit comments

Comments
 (0)