Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/mpe_lkg/battery/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,18 @@ def run(
decompose: int = 8,
budget: float = 120.0,
select: bool = False,
progress=print,
progress=None,
) -> dict:
"""Every question through the reasoning loop, one row each."""
from ..reasoning import _steady, reason

if progress is None:
# Flushed, not buffered: a battery run takes half an hour, and a log
# that stays empty until exit is indistinguishable from a hung one.
import functools

progress = functools.partial(print, flush=True)

rows = []
for index, question in enumerate(questions, 1):
started = time.time()
Expand Down
Loading