DatasetRef¶
- 
class lsst.daf.butler.DatasetRef(datasetType, dataId, id=None, run=None)¶
- Bases: - object- Reference to a Dataset in a - Registry.- A - DatasetRefmay point to a Dataset that currently does not yet exist (e.g., because it is a predicted input for provenance).- Parameters: - datasetType : DatasetType
- The - DatasetTypefor this Dataset.
- dataId : dict
- A - dictof- DataUnitlink name, value pairs that label the- DatasetRefwithin a Collection.
- id : int, optional
- A unique identifier. Normally set to - Noneand assigned by- Registry
 - Attributes Summary - actualConsumers- A sequence of - Quantuminstances that list this Dataset in their- actualInputsattributes.- components- Named - DatasetRefcomponents.- dataId- A - dictof- DataUnitlink name, value pairs that label the- DatasetRefwithin a Collection.- datasetType- The - DatasetTypeassociated with the Dataset the- DatasetRefpoints to.- id- Primary key of the dataset ( - int)- predictedConsumers- A sequence of - Quantuminstances that list this Dataset in their- predictedInputsattributes.- producer- The - Quantuminstance that produced (or will produce) the Dataset.- run- The - Runinstance that produced (or will produce) the Dataset.- Methods Summary - detach()- Obtain a new DatasetRef that is detached from the registry. - isComposite()- Boolean indicating whether this - DatasetRefis a composite type.- Attributes Documentation - 
actualConsumers¶
- A sequence of - Quantuminstances that list this Dataset in their- actualInputsattributes.- Read-only; update via - Registry.markInputUsed(). May be an empty list if no provenance information is available.
 - 
components¶
- Named - DatasetRefcomponents.- Read-only; update via - Registry.attachComponent().
 - 
dataId¶
- A - dictof- DataUnitlink name, value pairs that label the- DatasetRefwithin a Collection.
 - 
datasetType¶
- The - DatasetTypeassociated with the Dataset the- DatasetRefpoints to.
 - 
predictedConsumers¶
- A sequence of - Quantuminstances that list this Dataset in their- predictedInputsattributes.- Read-only; update via - Quantum.addPredictedInput(). May be an empty list if no provenance information is available.
 - 
producer¶
- The - Quantuminstance that produced (or will produce) the Dataset.- Read-only; update via - Registry.addDataset(),- QuantumGraph.addDataset(), or- Butler.put(). May be- Noneif no provenance information is available.
 - 
run¶
- The - Runinstance that produced (or will produce) the Dataset.- Read-only; update via - Registry.addDataset()or- Butler.put().
 - Methods Documentation - 
detach()¶
- Obtain a new DatasetRef that is detached from the registry. - Its - idproperty will be- None. This can be used for transfers and similar operations.
 - 
isComposite()¶
- Boolean indicating whether this - DatasetRefis a composite type.- Returns: - isComposite : bool
- Trueif this- DatasetRefis a composite type,- Falseotherwise.
 
- isComposite : 
 
- datasetType :