nirs4all.controllers.charts.spectra module
SpectraChartController - Unified 2D and 3D spectra visualization controller.
- class nirs4all.controllers.charts.spectra.SpectraChartController[source]
Bases:
OperatorController- execute(step_info: ParsedStep, dataset: SpectroDataset, context: ExecutionContext, runtime_context: Any, source: int = -1, mode: str = 'train', loaded_binaries: Any = None, prediction_store: Any = None) Tuple[ExecutionContext, Any][source]
Execute spectra visualization for both 2D and 3D plots. Skips execution in prediction mode.
- Supports optional parameters via dict syntax:
{“chart_2d”: {“include_excluded”: True, “highlight_excluded”: True}}
- Parameters:
include_excluded – If True, include excluded samples in visualization
highlight_excluded – If True, highlight excluded samples with different style
- Returns:
Tuple of (context, StepOutput)
- classmethod matches(step: Any, operator: Any, keyword: str) bool[source]
Check if the operator matches the step and keyword.