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

Function write_report_files

tools/test_selector.py:817–832  ·  view source on GitHub ↗
(
    res: SelectorResult,
    out_dir: Path,
    report_style: str = "minimal",
    no_emoji: bool = False,
)

Source from the content-addressed store, hash-verified

815
816
817def write_report_files(
818 res: SelectorResult,
819 out_dir: Path,
820 report_style: str = "minimal",
821 no_emoji: bool = False,
822) -> tuple[Path, Path]:
823 out_dir.mkdir(parents=True, exist_ok=True)
824 json_path = out_dir / "selection.json"
825 md_path = out_dir / "decision.md"
826
827 json_path.write_text(res.model_dump_json(indent=2), encoding="utf-8")
828 md_path.write_text(
829 _render_decision_markdown(res, style=report_style, emoji=not no_emoji),
830 encoding="utf-8",
831 )
832 return json_path, md_path
833
834
835def create_job_summary(md_path: Path, overwrite: bool = True) -> None:

Callers 1

mainFunction · 0.85

Calls 1

Tested by

no test coverage detected