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.corpus is not installed.

ValueError

If status is not a known status value.

Parameters:

status (str)

Return type:

Any

Notes

Developer-focused. The import is performed here, at call time, so that importing scikitplot.mcp never pulls in scikitplot.corpus. That module-scope boundary is enforced by scikitplot/mcp/_maintenance/check_trackers.py.