nirs4all.pipeline.config.pipeline_config module
PipelineConfigs.py
- class nirs4all.pipeline.config.pipeline_config.PipelineConfigs(definition: Dict | List[Any] | str, name: str = '', description: str = 'No description provided', max_generation_count: int = 10000)[source]
Bases:
objectClass to hold the configuration for a pipeline.
- property expansion_count: int
Return the number of pipeline configurations generated from the template.
- Returns:
Number of expanded configurations (1 if no generators were used)
- static get_hash(steps) str[source]
Generate a hash for the pipeline configuration.
All objects are fully JSON-serializable (no _runtime_instance). No need for default=str hack anymore.
- get_template_dict() Dict[source]
Get the original template as a dictionary.
- Returns:
Original template dictionary (deep copy to prevent mutation)
- get_template_yaml() str[source]
Serialize the original template to YAML format for storage.
- Returns:
YAML string of the original template