lsst.pipe.base  19.0.0-23-gdc29a50
Public Member Functions | Public Attributes | List of all members
lsst.pipe.base.pipelineIR.TaskIR Class Reference

Public Member Functions

dict to_primitives (self)
 
def add_or_update_config (self, ConfigIR other_config)
 
def __eq__ (self, "TaskIR" other)
 

Public Attributes

 config
 

Detailed Description

Intermediate representation of tasks read from a pipeline yaml file.

Definition at line 154 of file pipelineIR.py.

Member Function Documentation

◆ __eq__()

def lsst.pipe.base.pipelineIR.TaskIR.__eq__ (   self,
"TaskIR"  other 
)

Definition at line 196 of file pipelineIR.py.

◆ add_or_update_config()

def lsst.pipe.base.pipelineIR.TaskIR.add_or_update_config (   self,
ConfigIR  other_config 
)
Adds a `ConfigIR` to this task if one is not present. Merges configs
if there is a `ConfigIR` present and the dataId keys of both configs
match, otherwise adds a new entry to the config list. The exception to
the above is that if either the last config or other_config has a python
block, then other_config is always added, as python blocks can modify
configs in ways that cannot be predicted.

Parameters
----------
other_config : `ConfigIR`
    A `ConfigIR` instance to add or merge into the config attribute of
    this task.

Definition at line 177 of file pipelineIR.py.

◆ to_primitives()

dict lsst.pipe.base.pipelineIR.TaskIR.to_primitives (   self)
Convert to a representation used in yaml serialization

Definition at line 169 of file pipelineIR.py.

Member Data Documentation

◆ config

lsst.pipe.base.pipelineIR.TaskIR.config

Definition at line 192 of file pipelineIR.py.


The documentation for this class was generated from the following file: