DatabaseTopologicalFamily

class lsst.daf.butler.DatabaseTopologicalFamily(name: str, space: TopologicalSpace, *, members: NamedValueAbstractSet[DimensionElement])

Bases: TopologicalFamily

Database topological family implementation.

A TopologicalFamily implementation for the DatabaseDimension and DatabaseDimensionCombination objects that have direct database representations.

Parameters:
namestr

Name of the family.

spaceTopologicalSpace

Space in which this family’s regions live.

membersNamedValueAbstractSet [ DimensionElement ]

The members of this family, ordered according to the priority used in choose (first-choice member first).

Attributes Summary

governor

Return GovernorDimension common to all members of this family.

Methods Summary

choose(endpoints)

Select the best member of this family to use.

Attributes Documentation

governor

Return GovernorDimension common to all members of this family.

(GovernorDimension).

Methods Documentation

choose(endpoints: NamedValueAbstractSet[TopologicalRelationshipEndpoint]) 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:
endpointsNamedValueAbstractSet [TopologicalRelationshipEndpoint]

Endpoints to choose from. May include endpoints that are not members of this family (which should be ignored).

Returns:
bestTopologicalRelationshipEndpoint

The best endpoint that is both a member of self and in endpoints.