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

Function write_outputs

tools/docs_and_notebooks_check.py:976–985  ·  view source on GitHub ↗
(report: Report, cfg: ToolConfig, out_dir: Path)

Source from the content-addressed store, hash-verified

974
975
976def write_outputs(report: Report, cfg: ToolConfig, out_dir: Path) -> tuple[Path, Path]:
977 out_dir.mkdir(parents=True, exist_ok=True)
978 json_path = out_dir / f"{OUTPUT_FILENAME}.json"
979 md_path = out_dir / f"{OUTPUT_FILENAME}.md"
980
981 payload = report.model_dump(mode="json")
982
983 json_path.write_text(json.dumps(payload, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
984 md_path.write_text(to_markdown(report, cfg), encoding="utf-8")
985 return json_path, md_path
986
987
988# -----------------------------

Callers 1

mainFunction · 0.85

Calls 1

to_markdownFunction · 0.85

Tested by

no test coverage detected