resolve_profile#
- scikitplot.cython.resolve_profile(profile)[source]#
Resolve a profile name to deterministic defaults.
- Parameters:
- profilestr or None
One of
"fast-debug","release","annotate", orNone.
- Returns:
- ProfileDefaults
Deterministic, immutable defaults for the requested profile.
- Raises:
- ValueError
If
profileis notNoneand is not a recognized name.
- Parameters:
profile (str | None)
- Return type:
Notes
Compiler-flag branches key off
_is_msvc(active toolchain), notis_windows(host OS). This is the fix for the toolchain/OS mismatch: a native-Windows host using GCC (MinGW/MSYS2) now receives GCC flags instead of MSVC flags. On every non-Windows host, and on Windows-with-MSVC, the resolved flags are unchanged from the historical behaviour, so existing content-addressed cache keys are preserved there.Every flag below is a hard-coded literal; no user input flows into flag selection, so this function cannot emit an injected argument.