ska_sdp_piper.piper.stage.stages module
- class ska_sdp_piper.piper.stage.stages.Stage(name, stage_definition, optional=False)[source]
Bases:
objectRepresents an individual processing step within a pipeline.
- update_parameters(**kwargs)[source]
Update the configuration parameters for this stage.
- Parameters:
**kwargs -- Mapping of configuration parameter names to their new values.
- add_additional_parameters(_cli_args_, **piper_args)[source]
Update additional parameters provided by the pipeline.
- Parameters:
_cli_args_ (dict) -- Dictionary of command-line interface arguments.
**piper_args -- Additional keyword arguments for internal pipeline parameters.
- validate_stage_args()[source]
Validate that all required arguments and parameters are initialized.
- Raises:
AssertionError -- If CLI or Piper arguments contain uninitialized values.
ValidationError -- If the configuration does not match the expected model schema.
- class ska_sdp_piper.piper.stage.stages.Stages(*stages)[source]
Bases:
objectPipeline stages
- property executable_stages: list[Stage]
Get the list of currently enabled stages.
- Return type:
The subset of stages where is_enabled is True.
- validate()[source]
Validate all executable stages and their arguments.
- Raises:
NoStageToExecuteException -- If no stages are enabled for execution.