GovernorDimensionRestriction¶
-
class
lsst.daf.butler.registry.wildcards.GovernorDimensionRestriction(universe: lsst.daf.butler.core.dimensions._universe.DimensionUniverse, **kwargs)¶ Bases:
objectAn object that represents a restriction on some entity to only certain values of the governor dimensions.
Parameters: Attributes Summary
mappingA NamedKeyMappingview of this restriction, with all restricted dimensions as keys and sets of allowed data ID values as dictionary values.Methods Summary
isConsistentWith(dataId)Test whether this restriction is consistent with the given data ID. union(universe, *args)Merge one or more GovernorDimensionRestrictioninstances.Attributes Documentation
-
mapping¶ A
NamedKeyMappingview of this restriction, with all restricted dimensions as keys and sets of allowed data ID values as dictionary values.
Methods Documentation
-
isConsistentWith(dataId: lsst.daf.butler.core.dimensions._coordinate.DataCoordinate) → bool¶ Test whether this restriction is consistent with the given data ID.
Parameters: - dataId :
DataCoordinate Data ID to test.
Returns: - dataId :
-
static
union(universe: lsst.daf.butler.core.dimensions._universe.DimensionUniverse, *args) → lsst.daf.butler.registry.wildcards.GovernorDimensionRestriction¶ Merge one or more
GovernorDimensionRestrictioninstances.Parameters: - universe :
DimensionUniverse Object managing all known dimensions.
- *args
Additional positional arguments are
GovernorDimensionRestrictioninstances.
Returns: - merged :
GovernorDimensionRestriction A
GovernorDimensionRestrictionthat allows any of the dimension values permitted by any of the inputs.
- universe :
-