Quantum¶
- class lsst.daf.butler.Quantum(*, taskName: Optional[str] = None, taskClass: Optional[Type] = None, dataId: Optional[DataCoordinate] = None, initInputs: Optional[Union[Mapping[DatasetType, DatasetRef], Iterable[DatasetRef]]] = None, inputs: Optional[Mapping[DatasetType, List[DatasetRef]]] = None, outputs: Optional[Mapping[DatasetType, List[DatasetRef]]] = None)¶
- Bases: - object- Class representing a discrete unit of work. - A Quantum may depend on one or more datasets and produce one or more datasets. - Most Quanta will be executions of a particular - PipelineTask’s- runQuantummethod, but they can also be used to represent discrete units of work performed manually by human operators or other software agents.- Parameters:
- taskNamestr, optional
- Fully-qualified name of the Task class that executed or will execute this Quantum. If not provided, - taskClassmust be.
- taskClasstype, optional
- The Task class that executed or will execute this Quantum. If not provided, - taskNamemust be. Overrides- taskNameif both are provided.
- dataIdDataId, optional
- The dimension values that identify this - Quantum.
- initInputscollection of DatasetRef, optional
- Datasets that are needed to construct an instance of the Task. May be a flat iterable of - DatasetRefinstances or a mapping from- DatasetTypeto- DatasetRef.
- inputsMapping, optional
- Inputs identified prior to execution, organized as a mapping from - DatasetTypeto a list of- DatasetRef.
- outputsMapping, optional
- Outputs from executing this quantum of work, organized as a mapping from - DatasetTypeto a list of- DatasetRef.
 
- taskName
 - Attributes Summary - Return dimension values of the unit of processing ( - DataId).- Return mapping of datasets used to construct the Task. - Return mapping of input datasets that were expected to be used. - Return mapping of output datasets (to be) generated by this quantum. - Return Fully-qualified name of the task associated with - Quantum.- Attributes Documentation - dataId¶
- Return dimension values of the unit of processing ( - DataId).
 - initInputs¶
- Return mapping of datasets used to construct the Task. - Has - DatasetTypeinstances as keys (names can also be used for lookups) and- DatasetRefinstances as values.
 - inputs¶
- Return mapping of input datasets that were expected to be used. - Has - DatasetTypeinstances as keys (names can also be used for lookups) and a list of- DatasetRefinstances as values.- Notes - We cannot use - setinstead of- listfor the nested container because- DatasetRefinstances cannot be compared reliably when some have integers IDs and others do not.
 - outputs¶
- Return mapping of output datasets (to be) generated by this quantum. - Has the same form as - predictedInputs.- Notes - We cannot use - setinstead of- listfor the nested container because- DatasetRefinstances cannot be compared reliably when some have integers IDs and others do not.