INNER CODE UNIT · Python

_print_stats

416rehman/DeepZero · src/deepzero/cli.py:644

def _print_stats(run_state, manifest: list[dict[str, Any]] | None = None) -> None:
    # `manifest` is accepted for caller compatibility, but current manifest
    # entries do not persist per-stage history, so stage statistics must come
    # from the run state's cached per-stage counters.
    _ = manifest
    per_stage: dict[str, dict[str, int]] = dict(run_state.stats.get("per_stage", {}))

    if not run_state.stages:
        discovered = run_state.stats.get("discovered", 0)
        if discovered:
            console.print(f"  discovered: {discovered}")
        return

    table = Table(show_header=True)
    table.add_column("stage", style="cyan")
    table.add_column("completed", style="green", justify="right")
    table.add_column("filtered", style="yellow", justify="right")
    table.add_column("failed", style="red", justify="right")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…