Quantum¶
-
class
lsst.daf.butler.Quantum(*, taskName=None, taskClass=None, dataId=None, run=None, initInputs=None, predictedInputs=(), actualInputs=(), outputs=(), **kwargs)¶ Bases:
lsst.daf.butler.ExecutionA discrete unit of work that may depend on one or more datasets and produces one or more datasets.
Most Quanta will be executions of a particular
PipelineTask’srunQuantummethod, but they can also be used to represent discrete units of work performed manually by human operators or other software agents.Parameters: - taskName :
str, optional Fully-qualified name of the Task class that executed or will execute this Quantum. If not provided,
taskClassmust be.- taskClass :
type, optional The Task class that executed or will execute this Quantum. If not provided,
taskNamemust be. OverridestaskNameif both are provided.- dataId :
DataId, optional The dimension values that identify this
Quantum.- run :
Run, optional The Run this Quantum is a part of.
- initInputs : collection of
DatasetRef, optional Datasets that are needed to construct an instance of the Task. May be a flat iterable of
DatasetRefinstances or a mapping fromDatasetTypetoDatasetRef.- predictedInputs :
Mapping, optional Inputs identified prior to execution, organized as a mapping from
DatasetTypeto a list ofDatasetRef. Must be a superset ofactualInputs.- actualInputs :
Mapping, optional Inputs actually used during execution, organized as a mapping from
DatasetTypeto a list ofDatasetRef. Must be a subset ofpredictedInputs.- outputs :
Mapping, optional Outputs from executing this quantum of work, organized as a mapping from
DatasetTypeto a list ofDatasetRef.- kwargs
Additional arguments are forwarded to the base
Executionconstructor.
Attributes Summary
actualInputsA mapping of input datasets that were actually used, with the same form as Quantum.predictedInputs.dataIdThe dimension values of the unit of processing ( DataId).endTimehostidinitInputsA mapping of datasets used to construct the Task, with DatasetTypeinstances as keys (names can also be used for lookups) andDatasetRefinstances as values.outputsA mapping of output datasets (to be) generated for this quantum, with the same form as predictedInputs.predictedInputsA mapping of input datasets that were expected to be used, with DatasetTypeinstances as keys (names can also be used for lookups) and a list ofDatasetRefinstances as values.runThe Run this Quantum is a part of ( Run).startTimetaskClassTask class associated with this Quantum(type).taskNameFully-qualified name of the task associated with Quantum(str).Methods Summary
addOutput(ref)Add an output DatasetRefto theQuantum.addPredictedInput(ref)Add an input DatasetRefto theQuantum.Attributes Documentation
-
actualInputs¶ A mapping of input datasets that were actually used, with the same form as
Quantum.predictedInputs.Notes
We cannot use
setinstead oflistfor the nested container becauseDatasetRefinstances cannot be compared reliably when some have integers IDs and others do not.
-
endTime¶
-
host¶
-
id¶
-
initInputs¶ A mapping of datasets used to construct the Task, with
DatasetTypeinstances as keys (names can also be used for lookups) andDatasetRefinstances as values.
-
outputs¶ A mapping of output datasets (to be) generated for this quantum, with the same form as
predictedInputs.Notes
We cannot use
setinstead oflistfor the nested container becauseDatasetRefinstances cannot be compared reliably when some have integers IDs and others do not.
-
predictedInputs¶ A mapping of input datasets that were expected to be used, with
DatasetTypeinstances as keys (names can also be used for lookups) and a list ofDatasetRefinstances as values.Notes
We cannot use
setinstead oflistfor the nested container becauseDatasetRefinstances cannot be compared reliably when some have integers IDs and others do not.
-
startTime¶
Methods Documentation
-
addOutput(ref)¶ Add an output
DatasetRefto theQuantum.This does not automatically update a
Registry; alloutputsmust be present before aRegistry.addQuantum()is called.Parameters: - ref :
DatasetRef Reference for a Dataset to add to the Quantum’s outputs.
- ref :
-
addPredictedInput(ref)¶ Add an input
DatasetRefto theQuantum.This does not automatically update a
Registry; allpredictedInputsmust be present before aRegistry.addQuantum()is called.Parameters: - ref :
DatasetRef Reference for a Dataset to add to the Quantum’s predicted inputs.
- ref :
- taskName :