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.connections.PipelineTaskConnectionDict Class Reference
Inheritance diagram for lsst.pipe.base.connections.PipelineTaskConnectionDict:

Public Member Functions

def __init__ (self, *args, **kwargs)
 
def __setitem__ (self, name, value)
 

Detailed Description

This is a special dict class used by PipelineTaskConnectionMetaclass

This dict is used in PipelineTaskConnection class creation, as the
dictionary that is initially used as __dict__. It exists to
intercept connection fields declared in a PipelineTaskConnection, and
what name is used to identify them. The names are then added to class
level list according to the connection type of the class attribute. The
names are also used as keys in a class level dictionary associated with
the corresponding class attribute. This information is a duplicate of
what exists in __dict__, but provides a simple place to lookup and
iterate on only these variables.

Definition at line 51 of file connections.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.pipe.base.connections.PipelineTaskConnectionDict.__init__ (   self,
args,
**  kwargs 
)

Definition at line 64 of file connections.py.

64  def __init__(self, *args, **kwargs):
65  super().__init__(*args, **kwargs)
66  # Initialize class level variables used to track any declared
67  # class level variables that are instances of
68  # connectionTypes.BaseConnection
69  self.data['inputs'] = []
70  self.data['prerequisiteInputs'] = []
71  self.data['outputs'] = []
72  self.data['initInputs'] = []
73  self.data['initOutputs'] = []
74  self.data['allConnections'] = {}
75 

Member Function Documentation

◆ __setitem__()

def lsst.pipe.base.connections.PipelineTaskConnectionDict.__setitem__ (   self,
  name,
  value 
)

Definition at line 76 of file connections.py.

76  def __setitem__(self, name, value):
77  if isinstance(value, Input):
78  self.data['inputs'].append(name)
79  elif isinstance(value, PrerequisiteInput):
80  self.data['prerequisiteInputs'].append(name)
81  elif isinstance(value, Output):
82  self.data['outputs'].append(name)
83  elif isinstance(value, InitInput):
84  self.data['initInputs'].append(name)
85  elif isinstance(value, InitOutput):
86  self.data['initOutputs'].append(name)
87  # This should not be an elif, as it needs tested for
88  # everything that inherits from BaseConnection
89  if isinstance(value, BaseConnection):
90  object.__setattr__(value, 'varName', name)
91  self.data['allConnections'][name] = value
92  # defer to the default behavior
93  super().__setitem__(name, value)
94 
95 
std::shared_ptr< FrameSet > append(FrameSet const &first, FrameSet const &second)
Construct a FrameSet that performs two transformations in series.
Definition: functional.cc:33

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