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._TaskScaffolding Class Reference

Public Member Functions

def __init__ (self, TaskDef taskDef, _PipelineScaffolding parent, TaskDatasetTypes datasetTypes)
 
def __repr__ (self)
 
Set[Quantum] makeQuantumSet (self)
 

Public Attributes

 taskDef
 
 dimensions
 
 initInputs
 
 initOutputs
 
 inputs
 
 outputs
 
 prerequisites
 
 dataIds
 
 quanta
 

Detailed Description

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

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

Parameters
----------
taskDef : `TaskDef`
    Data structure that identifies the task class and its config.
parent : `_PipelineScaffolding`
    The parent data structure that will hold the instance being
    constructed.
datasetTypes : `TaskDatasetTypes`
    Data structure that categorizes the dataset types used by this task.

Definition at line 266 of file graphBuilder.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.pipe.base.graphBuilder._TaskScaffolding.__init__ (   self,
TaskDef  taskDef,
_PipelineScaffolding  parent,
TaskDatasetTypes  datasetTypes 
)

Definition at line 283 of file graphBuilder.py.

283  def __init__(self, taskDef: TaskDef, parent: _PipelineScaffolding, datasetTypes: TaskDatasetTypes):
284  universe = parent.dimensions.universe
285  self.taskDef = taskDef
286  self.dimensions = DimensionGraph(universe, names=taskDef.connections.dimensions)
287  assert self.dimensions.issubset(parent.dimensions)
288  # Initialize _DatasetDicts as subsets of the one or two
289  # corresponding dicts in the parent _PipelineScaffolding.
290  self.initInputs = _DatasetDict.fromSubset(datasetTypes.initInputs, parent.initInputs,
291  parent.initIntermediates)
292  self.initOutputs = _DatasetDict.fromSubset(datasetTypes.initOutputs, parent.initIntermediates,
293  parent.initOutputs)
294  self.inputs = _DatasetDict.fromSubset(datasetTypes.inputs, parent.inputs, parent.intermediates)
295  self.outputs = _DatasetDict.fromSubset(datasetTypes.outputs, parent.intermediates, parent.outputs)
296  self.prerequisites = _DatasetDict.fromSubset(datasetTypes.prerequisites, parent.prerequisites)
297  self.dataIds = set()
298  self.quanta = {}
299 
daf::base::PropertySet * set
Definition: fits.cc:912

Member Function Documentation

◆ __repr__()

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

Definition at line 300 of file graphBuilder.py.

300  def __repr__(self):
301  # Default dataclass-injected __repr__ gets caught in an infinite loop
302  # because of back-references.
303  return f"_TaskScaffolding(taskDef={self.taskDef}, ...)"
304 

◆ makeQuantumSet()

Set[Quantum] lsst.pipe.base.graphBuilder._TaskScaffolding.makeQuantumSet (   self)
Create a `set` of `Quantum` from the information in ``self``.

Returns
-------
nodes : `set` of `Quantum
    The `Quantum` elements corresponding to this task.

Definition at line 345 of file graphBuilder.py.

345  def makeQuantumSet(self) -> Set[Quantum]:
346  """Create a `set` of `Quantum` from the information in ``self``.
347 
348  Returns
349  -------
350  nodes : `set` of `Quantum
351  The `Quantum` elements corresponding to this task.
352  """
353  return set(q.makeQuantum() for q in self.quanta.values())
354 
355 
356 @dataclass

Member Data Documentation

◆ dataIds

lsst.pipe.base.graphBuilder._TaskScaffolding.dataIds

Definition at line 297 of file graphBuilder.py.

◆ dimensions

lsst.pipe.base.graphBuilder._TaskScaffolding.dimensions

Definition at line 286 of file graphBuilder.py.

◆ initInputs

lsst.pipe.base.graphBuilder._TaskScaffolding.initInputs

Definition at line 290 of file graphBuilder.py.

◆ initOutputs

lsst.pipe.base.graphBuilder._TaskScaffolding.initOutputs

Definition at line 292 of file graphBuilder.py.

◆ inputs

lsst.pipe.base.graphBuilder._TaskScaffolding.inputs

Definition at line 294 of file graphBuilder.py.

◆ outputs

lsst.pipe.base.graphBuilder._TaskScaffolding.outputs

Definition at line 295 of file graphBuilder.py.

◆ prerequisites

lsst.pipe.base.graphBuilder._TaskScaffolding.prerequisites

Definition at line 296 of file graphBuilder.py.

◆ quanta

lsst.pipe.base.graphBuilder._TaskScaffolding.quanta

Definition at line 298 of file graphBuilder.py.

◆ taskDef

lsst.pipe.base.graphBuilder._TaskScaffolding.taskDef

Definition at line 285 of file graphBuilder.py.


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