Skip to main content

review.runs.Attempt

review.runs.Attempt(
    n,
    wrote_module,
    evaluations_passed,
    evaluations_failed,
    evaluations_errors,
    candidate_class,
)

One [[attempt]] of run.toml.

Attributes

Name Type Description
n int Position of the attempt, from 1.
wrote_module bool Whether a module was written and evaluated.
evaluations_passed int Evaluations that passed; 0 if no module was written.
evaluations_failed int Evaluations that failed; 0 if none was written.
evaluations_errors int Evaluation errors; 0 if none was written.
candidate_class str Why no module was evaluated (no_module, truncated, …); empty if one was, and always empty for score runs.

Examples

from babregen.review.runs import Attempt

print(Attempt(1, True, 5, 5, 0, ""))
Attempt(n=1, wrote_module=True, evaluations_passed=5, evaluations_failed=5, evaluations_errors=0, candidate_class='')