Constraints¶
- class lsst.daf.butler.Constraints(config: ConstraintsConfig | str | None, *, universe: DimensionUniverse)¶
- Bases: - object- Determine whether an entity is allowed to be handled. - Supported entities are - DatasetRef,- DatasetType, or- StorageClass.- Parameters:
- configConstraintsConfigorstr
- Load configuration. If - Nonethen this is equivalent to having no restrictions.
- universeDimensionUniverse
- The set of all known dimensions, used to normalize any lookup keys involving dimensions. 
 
- config
 - Attributes Summary - Configuration key associated with matching everything. - Methods Summary - Retrieve the look up keys for all the constraints entries. - isAcceptable(entity)- Check whether the supplied entity will be acceptable. - Attributes Documentation - matchAllKey = LookupKey(name='all',)¶
- Configuration key associated with matching everything. 
 - Methods Documentation - getLookupKeys() set[lsst.daf.butler.core.configSupport.LookupKey]¶
- Retrieve the look up keys for all the constraints entries. 
 - isAcceptable(entity: DatasetRef | DatasetType | StorageClass) bool¶
- Check whether the supplied entity will be acceptable. - Parameters:
- entityDatasetType,DatasetRef, orStorageClass
- Instance to use to look in constraints table. The entity itself reports the - LookupKeythat is relevant.
 
- entity
- Returns: