nirs4all.controllers.flow.dummy module

DummyController.py - A catch-all controller for operators not handled by other controllers in the nirs4all pipeline.

class nirs4all.controllers.flow.dummy.DummyController[source]

Bases: OperatorController

Catch-all controller for operators not handled by other controllers.

This controller has the lowest priority and will catch any operators that don’t match other controllers, providing detailed debugging information about why they weren’t handled elsewhere.

execute(step_info: ParsedStep, dataset: SpectroDataset, context: ExecutionContext, runtime_context: RuntimeContext, source: int = -1, mode: str = 'train', loaded_binaries: List[Tuple[str, Any]] | None = None, prediction_store: Any | None = None) Tuple[ExecutionContext, List[Tuple[str, bytes]]][source]

Handle unmatched operators and provide detailed debugging information.

classmethod matches(step: Any, operator: Any, keyword: str) bool[source]

Always match as a last resort.

This controller should only be reached if no other controller with higher priority has matched the step/operator/keyword combination.

priority: int = 1000
classmethod supports_prediction_mode() bool[source]

Dummy controller supports prediction mode.

classmethod use_multi_source() bool[source]

Check if the operator supports multi-source datasets.