iterConnections¶
-
lsst.pipe.base.
iterConnections
(connections: lsst.pipe.base.connections.PipelineTaskConnections, connectionType: Union[str, Iterable[str]]) → Generator[lsst.pipe.base.connectionTypes.BaseConnection, None, None]¶ Creates an iterator over the selected connections type which yields all the defined connections of that type.
Parameters: - connections: `PipelineTaskConnections`
An instance of a
PipelineTaskConnections
object that will be iterated over.- connectionType: `str`
The type of connections to iterate over, valid values are inputs, outputs, prerequisiteInputs, initInputs, initOutputs.
Yields: - connection: `BaseConnection`
A connection defined on the input connections object of the type supplied. The yielded value Will be an derived type of
BaseConnection
.