MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / format_debug_report

Function format_debug_report

deeplabcut/core/debug/debug_logger.py:458–479  ·  view source on GitHub ↗
(
    *,
    sections: Iterable[DebugSection],
    logs_text: str,
)

Source from the content-addressed store, hash-verified

456
457
458def format_debug_report(
459 *,
460 sections: Iterable[DebugSection],
461 logs_text: str,
462) -> str:
463 lines: list[str] = []
464
465 for section in sections:
466 lines.append(f"## {section.title}")
467 if section.items:
468 for k, v in section.items.items():
469 lines.append(f"- {k}: {v}")
470 else:
471 lines.append("- <no data>")
472 lines.append("")
473
474 lines.append("## Recent logs")
475 lines.append("```text")
476 lines.append(logs_text or "<no captured logs>")
477 lines.append("```")
478
479 return "\n".join(lines)
480
481
482def build_debug_report(

Calls 1

itemsMethod · 0.80