LSST Applications  22.0.1,22.0.1+01bcf6a671,22.0.1+046ee49490,22.0.1+05c7de27da,22.0.1+0c6914dbf6,22.0.1+1220d50b50,22.0.1+12fd109e95,22.0.1+1a1dd69893,22.0.1+1c910dc348,22.0.1+1ef34551f5,22.0.1+30170c3d08,22.0.1+39153823fd,22.0.1+611137eacc,22.0.1+771eb1e3e8,22.0.1+94e66cc9ed,22.0.1+9a075d06e2,22.0.1+a5ff6e246e,22.0.1+a7db719c1a,22.0.1+ba0d97e778,22.0.1+bfe1ee9056,22.0.1+c4e1e0358a,22.0.1+cc34b8281e,22.0.1+d640e2c0fa,22.0.1+d72a2e677a,22.0.1+d9a6b571bd,22.0.1+e485e9761b,22.0.1+ebe8d3385e
LSST Data Management Base Package
Public Member Functions | Public Attributes | List of all members
lsst.pipe.base.pipelineIR.ContractIR Class Reference

Public Member Functions

Dict[str, str] to_primitives (self)
 
def __eq__ (self, object other)
 

Public Attributes

 contract
 
 msg
 

Detailed Description

Intermediate representation of contracts read from a pipeline yaml file.

Definition at line 73 of file pipelineIR.py.

Member Function Documentation

◆ __eq__()

def lsst.pipe.base.pipelineIR.ContractIR.__eq__ (   self,
object  other 
)

Definition at line 93 of file pipelineIR.py.

93  def __eq__(self, other: object):
94  if not isinstance(other, ContractIR):
95  return False
96  elif self.contract == other.contract and self.msg == other.msg:
97  return True
98  else:
99  return False
100 
101 
102 @dataclass

◆ to_primitives()

Dict[str, str] lsst.pipe.base.pipelineIR.ContractIR.to_primitives (   self)
Convert to a representation used in yaml serialization

Definition at line 85 of file pipelineIR.py.

85  def to_primitives(self) -> Dict[str, str]:
86  """Convert to a representation used in yaml serialization
87  """
88  accumulate = {"contract": self.contract}
89  if self.msg is not None:
90  accumulate['msg'] = self.msg
91  return accumulate
92 

Member Data Documentation

◆ contract

lsst.pipe.base.pipelineIR.ContractIR.contract

Definition at line 96 of file pipelineIR.py.

◆ msg

lsst.pipe.base.pipelineIR.ContractIR.msg

Definition at line 96 of file pipelineIR.py.


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