MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / _log_label

Function _log_label

scripts/dashboard.py:2780–2790  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

2778
2779
2780def _log_label(path: Path) -> str:
2781 kind = _log_kind(path)
2782 if log_root_path:
2783 try:
2784 rel = path.relative_to(log_root_path)
2785 parent = rel.parent
2786 label = parent.name if parent.name else rel.name
2787 return f"{label} [{kind}]"
2788 except Exception:
2789 pass
2790 return f"{path.name} [{kind}]"
2791
2792
2793def _collect_logs(root: Optional[Path]) -> list[dict]:

Callers 1

_collect_logsFunction · 0.85

Calls 1

_log_kindFunction · 0.85

Tested by

no test coverage detected