DimensionElement¶
-
class
lsst.daf.butler.DimensionElement(universe, name, hasRegion, link, required, optional, doc)¶ Bases:
objectBase class for elements in the dimension schema.
DimensionElementhas exactly two subclasses:DimensionandDimensionJoin.DimensionElementobjects are not directly constructable; they can only be obtained (possibly indirectly) from a special “universe”DimensionGraphloaded from configuration.Attributes Summary
docDocumentation for this dimension ( str).hasRegionWhether this dimension is associated with a region on the sky ( bool).linkPrimary key fields that are used only by this dimension, not any dependencies ( frozensetofstr).nameName of this dimension ( str, read-only).primaryKeyThe names of fields that uniquely identify this dimension in a data ID dict ( frozensetofstr).universeThe graph of all dimensions compatible with self ( DimensionGraph).Methods Summary
dependencies([required, optional])Return the set of dimensions this dimension depends on. graph([optional])Return the minimal DimensionGraphthat containsself.Attributes Documentation
-
link¶ Primary key fields that are used only by this dimension, not any dependencies (
frozensetofstr).
-
name¶ Name of this dimension (
str, read-only).Also assumed to be the name of any associated table or view.
-
primaryKey¶ The names of fields that uniquely identify this dimension in a data ID dict (
frozensetofstr).
-
universe¶ The graph of all dimensions compatible with self (
DimensionGraph).
Methods Documentation
-
dependencies(required=True, optional=False)¶ Return the set of dimensions this dimension depends on.
Parameters: Returns: - dependencies :
DimensionSet
- dependencies :
-
graph(optional=False)¶ Return the minimal
DimensionGraphthat containsself.Parameters: Returns: - graph :
DimensionGraph
- graph :
-