to_corpus_status#
- scikitplot.mcp.to_corpus_status(status)[source]#
Resolve a status string to
scikitplot.corpus.RetrievalStatus.- Parameters:
- statusstr
One of the module-level status constants.
- Returns:
- scikitplot.corpus.RetrievalStatus
- Raises:
- RuntimeError
If
scikitplot.corpusis not installed.- ValueError
If
statusis not a known status value.
- Parameters:
status (str)
- Return type:
Notes
Developer-focused. The import is performed here, at call time, so that importing
scikitplot.mcpnever pulls inscikitplot.corpus. That module-scope boundary is enforced byscikitplot/mcp/_maintenance/check_trackers.py.