Quantum¶
-
class
lsst.daf.butler.
Quantum
(task, run, *args, **kwargs)¶ Bases:
lsst.daf.butler.core.execution.Execution
A 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
SuperTask
’srunQuantum
method, but they can also be used to represent discrete units of work performed manually by human operators or other software agents.Parameters: Attributes Summary
actualInputs
A dict
of input datasets that were actually used, with the same form asQuantum.predictedInputs
.endTime
host
id
outputs
A dict
of output datasets (to be) generated for this quantum, with the same form aspredictedInputs
.predictedInputs
A dict
of input datasets that were expected to be used, withDatasetType
names as keys and a list ofDatasetRef
instances as values.run
The Run this Quantum is a part of ( Run
).startTime
task
Task associated with this Quantum
.Methods Summary
addOutput
(ref)Add an output DatasetRef
to theQuantum
.addPredictedInput
(ref)Add an input DatasetRef
to theQuantum
.Attributes Documentation
-
actualInputs
¶ A
dict
of input datasets that were actually used, with the same form asQuantum.predictedInputs
.All returned sets must be subsets of those in
predictedInputs
.Read-only; update via
Registry.markInputUsed()
.
-
endTime
¶
-
host
¶
-
id
¶
-
outputs
¶ A
dict
of output datasets (to be) generated for this quantum, with the same form aspredictedInputs
.Read-only; update via
addOutput()
.
-
predictedInputs
¶ A
dict
of input datasets that were expected to be used, withDatasetType
names as keys and a list ofDatasetRef
instances as values.Input
Datasets
that have already been stored may beDatasetRef
s, and in many contexts may be guaranteed to be. Read-only; update viaQuantum.addPredictedInput()
.
-
startTime
¶
-
task
¶ Task associated with this
Quantum
.If the
Quantum
is associated with aSuperTask
, this is theSuperTask
instance that produced and should execute this set of inputs and outputs. If not, a human-readable string identifier for the operation. Some Registries may permit the value to beNone
, but are not required to in general.
Methods Documentation
-
addOutput
(ref)¶ Add an output
DatasetRef
to theQuantum
.This does not automatically update a
Registry
; alloutputs
must 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
DatasetRef
to theQuantum
.This does not automatically update a
Registry
; allpredictedInputs
must be present before aRegistry.addQuantum()
is called.Parameters: - ref :
DatasetRef
Reference for a Dataset to add to the Quantum’s predicted inputs.
- ref :
-