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 | List of all members
lsst.pipe.base.pipelineIR.ParametersIR Class Reference

Public Member Functions

def update (self, Optional[ParametersIR] other)
 
MutableMapping[str, str] to_primitives (self)
 
bool __contains__ (self, str value)
 
Any __getitem__ (self, str item)
 
bool __bool__ (self)
 

Detailed Description

Intermediate representation of parameters that are global to a pipeline

These parameters are specified under a top level key named `parameters`
and are declared as a yaml mapping. These entries can then be used inside
task configuration blocks to specify configuration values. They may not be
used in the special ``file`` or ``python`` blocks.

Example:
paramters:
  shared_value: 14
tasks:
  taskA:
    class: modA
    config:
      field1: parameters.shared_value
  taskB:
    class: modB
    config:
      field2: parameters.shared_value

Definition at line 166 of file pipelineIR.py.

Member Function Documentation

◆ __bool__()

bool lsst.pipe.base.pipelineIR.ParametersIR.__bool__ (   self)

Definition at line 206 of file pipelineIR.py.

206  def __bool__(self) -> bool:
207  return bool(self.mapping)
208 
209 
210 @dataclass

◆ __contains__()

bool lsst.pipe.base.pipelineIR.ParametersIR.__contains__ (   self,
str  value 
)

Definition at line 200 of file pipelineIR.py.

200  def __contains__(self, value: str) -> bool:
201  return value in self.mapping
202 

◆ __getitem__()

Any lsst.pipe.base.pipelineIR.ParametersIR.__getitem__ (   self,
str  item 
)

Definition at line 203 of file pipelineIR.py.

203  def __getitem__(self, item: str) -> Any:
204  return self.mapping[item]
205 

◆ to_primitives()

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

Definition at line 195 of file pipelineIR.py.

195  def to_primitives(self) -> MutableMapping[str, str]:
196  """Convert to a representation used in yaml serialization
197  """
198  return self.mapping
199 

◆ update()

def lsst.pipe.base.pipelineIR.ParametersIR.update (   self,
Optional[ParametersIR other 
)

Definition at line 191 of file pipelineIR.py.

191  def update(self, other: Optional[ParametersIR]):
192  if other is not None:
193  self.mapping.update(other.mapping)
194 

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