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.graphBuilder._QuantumScaffolding Class Reference

Public Member Functions

def __init__ (self, _TaskScaffolding task, DataCoordinate dataId)
 
def __repr__ (self)
 
Quantum makeQuantum (self)
 

Public Attributes

 task
 
 dataId
 
 inputs
 
 outputs
 
 prerequisites
 

Detailed Description

Helper class aggregating information about a `Quantum`, used when
constructing a `QuantumGraph`.

See `_PipelineScaffolding` for a top-down description of the full
scaffolding data structure.

Parameters
----------
task : _TaskScaffolding
    Back-reference to the helper object for the `PipelineTask` this quantum
    represents an execution of.
dataId : `DataCoordinate`
    Data ID for this quantum.

Definition at line 185 of file graphBuilder.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.pipe.base.graphBuilder._QuantumScaffolding.__init__ (   self,
_TaskScaffolding  task,
DataCoordinate  dataId 
)

Definition at line 200 of file graphBuilder.py.

200  def __init__(self, task: _TaskScaffolding, dataId: DataCoordinate):
201  self.task = task
202  self.dataId = dataId
203  self.inputs = _DatasetDict.fromDatasetTypes(task.inputs.keys(), universe=dataId.universe)
204  self.outputs = _DatasetDict.fromDatasetTypes(task.outputs.keys(), universe=dataId.universe)
205  self.prerequisites = _DatasetDict.fromDatasetTypes(task.prerequisites.keys(),
206  universe=dataId.universe)
207 

Member Function Documentation

◆ __repr__()

def lsst.pipe.base.graphBuilder._QuantumScaffolding.__repr__ (   self)

Definition at line 210 of file graphBuilder.py.

210  def __repr__(self):
211  return f"_QuantumScaffolding(taskDef={self.task.taskDef}, dataId={self.dataId}, ...)"
212 

◆ makeQuantum()

Quantum lsst.pipe.base.graphBuilder._QuantumScaffolding.makeQuantum (   self)
Transform the scaffolding object into a true `Quantum` instance.

Returns
-------
quantum : `Quantum`
    An actual `Quantum` instance.

Definition at line 240 of file graphBuilder.py.

240  def makeQuantum(self) -> Quantum:
241  """Transform the scaffolding object into a true `Quantum` instance.
242 
243  Returns
244  -------
245  quantum : `Quantum`
246  An actual `Quantum` instance.
247  """
248  allInputs = self.inputs.unpackMultiRefs()
249  allInputs.update(self.prerequisites.unpackMultiRefs())
250  # Give the task's Connections class an opportunity to remove some
251  # inputs, or complain if they are unacceptable.
252  # This will raise if one of the check conditions is not met, which is
253  # the intended behavior
254  allInputs = self.task.taskDef.connections.adjustQuantum(allInputs)
255  return Quantum(
256  taskName=self.task.taskDef.taskName,
257  taskClass=self.task.taskDef.taskClass,
258  dataId=self.dataId,
259  initInputs=self.task.initInputs.unpackSingleRefs(),
260  inputs=allInputs,
261  outputs=self.outputs.unpackMultiRefs(),
262  )
263 
264 
265 @dataclass
def makeQuantum(task, butler, dataId, ioDataIds)
Definition: testUtils.py:40

Member Data Documentation

◆ dataId

lsst.pipe.base.graphBuilder._QuantumScaffolding.dataId

Definition at line 202 of file graphBuilder.py.

◆ inputs

lsst.pipe.base.graphBuilder._QuantumScaffolding.inputs

Definition at line 203 of file graphBuilder.py.

◆ outputs

lsst.pipe.base.graphBuilder._QuantumScaffolding.outputs

Definition at line 204 of file graphBuilder.py.

◆ prerequisites

lsst.pipe.base.graphBuilder._QuantumScaffolding.prerequisites

Definition at line 205 of file graphBuilder.py.

◆ task

lsst.pipe.base.graphBuilder._QuantumScaffolding.task

Definition at line 201 of file graphBuilder.py.


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