Quantum¶
-
class
lsst.daf.butler.Quantum(task, run, *args, **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
SuperTask’srunQuantummethod, but they can also be used to represent discrete units of work performed manually by human operators or other software agents.Parameters: Attributes Summary
actualInputsA dictof input datasets that were actually used, with the same form asQuantum.predictedInputs.endTimehostidoutputsA dictof output datasets (to be) generated for this quantum, with the same form aspredictedInputs.predictedInputsA dictof input datasets that were expected to be used, withDatasetTypenames as keys and a list ofDatasetRefinstances as values.runThe Run this Quantum is a part of ( Run).startTimetaskTask associated with this Quantum.Methods Summary
addOutput(ref)Add an output DatasetRefto theQuantum.addPredictedInput(ref)Add an input DatasetRefto theQuantum.Attributes Documentation
-
actualInputs¶ A
dictof 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
dictof output datasets (to be) generated for this quantum, with the same form aspredictedInputs.Read-only; update via
addOutput().
-
predictedInputs¶ A
dictof input datasets that were expected to be used, withDatasetTypenames as keys and a list ofDatasetRefinstances as values.Input
Datasetsthat have already been stored may beDatasetRefs, and in many contexts may be guaranteed to be. Read-only; update viaQuantum.addPredictedInput().
-
startTime¶
-
task¶ Task associated with this
Quantum.If the
Quantumis associated with aSuperTask, this is theSuperTaskinstance 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
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 :
-