DatasetRef¶
- 
class lsst.daf.butler.DatasetRef(datasetType, dataId, id=None, run=None, hash=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 : dictorDataId
- A - dictof- Dimensionlink fields that labels the Dataset within 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- Dimensionlink fields that labels the Dataset within a Collection (- dictor- DataId).- datasetType- The - DatasetTypeassociated with the Dataset the- DatasetRefpoints to.- hash- Secure hash of the - DatasetTypename and- DataId(- bytes).- 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- Dimensionlink fields that labels the Dataset within a Collection (- dictor- DataId).
 - 
datasetType¶
- The - DatasetTypeassociated with the Dataset the- DatasetRefpoints to.
 - 
hash¶
- Secure hash of the - DatasetTypename and- DataId(- bytes).
 - 
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 :