ConfigIR¶
- class lsst.pipe.base.pipelineIR.ConfigIR(python: ~typing.Optional[str] = None, dataId: ~typing.Optional[dict] = None, file: ~typing.List[str] = <factory>, rest: dict = <factory>)¶
Bases:
object
Intermediate representation of configurations read from a pipeline yaml file.
Attributes Summary
A dataId that is used to constrain these config overrides to only quanta with matching dataIds.
A string of python code that is used to modify a configuration.
Methods Summary
formatted
(parameters)Returns a new ConfigIR object that is formatted according to the specified parameters
maybe_merge
(other_config)Merges another instance of a
ConfigIR
into this instance if possible.Convert to a representation used in yaml serialization
Attributes Documentation
- dataId: Optional[dict] = None¶
A dataId that is used to constrain these config overrides to only quanta with matching dataIds. This field can be None if there is no constraint. This is currently an unimplemented feature, and is placed here for future use.
- python: Optional[str] = None¶
A string of python code that is used to modify a configuration. This can also be None if there are no modifications to do.
Methods Documentation
- formatted(parameters: ParametersIR) ConfigIR ¶
Returns a new ConfigIR object that is formatted according to the specified parameters
- Parameters:
- parametersParametersIR
Object that contains variable mappings used in substitution.
- Returns:
- configConfigIR
A new ConfigIR object formatted with the input parameters