DatabaseTopologicalFamily#
- class lsst.daf.butler.DatabaseTopologicalFamily(name: str, space: TopologicalSpace, *, members: NamedValueAbstractSet[DimensionElement])#
Bases:
TopologicalFamilyDatabase topological family implementation.
A
TopologicalFamilyimplementation for theDatabaseDimensionandDatabaseDimensionCombinationobjects that have direct database representations.Parameters#
- name
str Name of the family.
- space
TopologicalSpace Space in which this family’s regions live.
- members
NamedValueAbstractSet[DimensionElement] The members of this family, ordered according to the priority used in
choose(first-choice member first).
Attributes Summary
Return
GovernorDimensioncommon to all members of this family.Methods Summary
choose(dimensions)Select the best member of this family to use.
make_column_reference(endpoint)Create a column reference to the generalized region column for the given endpoint.
Attributes Documentation
- governor#
Return
GovernorDimensioncommon to all members of this family.
Methods Documentation
- choose(dimensions: DimensionGroup) DimensionElement#
Select the best member of this family to use.
These are to be used in a query join or data ID when more than one is present.
Usually this should correspond to the most fine-grained region.
Parameters#
- dimensions
DimensionGroup Dimensions to choose from, if this is a dimension-based topological family.
Returns#
- best
TopologicalRelationshipEndpoint The best endpoint from this family for these dimensions.
- dimensions
- make_column_reference(endpoint: TopologicalRelationshipEndpoint) DimensionFieldReference#
Create a column reference to the generalized region column for the given endpoint.
Parameters#
- endpoint
TopologicalRelationshipEndpoint Endpoint to create a column reference to.
Returns#
- column
queries.tree.ColumnReference Column reference.
- endpoint
- name