DataCoordinateSequence¶
- class lsst.daf.butler.DataCoordinateSequence(dataIds: Sequence[DataCoordinate], graph: DimensionGraph | None = None, *, dimensions: Iterable[str] | DimensionGroup | DimensionGraph | None = None, hasFull: bool | None = None, hasRecords: bool | None = None, check: bool = True, universe: DimensionUniverse | None = None)¶
- Bases: - _DataCoordinateCollectionBase,- Sequence[- DataCoordinate]- Iterable supporting the full Sequence interface. - A - DataCoordinateIterableimplementation that supports the full- collections.abc.Sequenceinterface.- Parameters:
- dataIdscollections.abc.Sequence[DataCoordinate]
- A sequence of - DataCoordinateinstances, with dimensions equal to- graph.
- graphDimensionGraph, optional
- Dimensions identified by all data IDs in the collection. Ignored if - dimensionsis provided, and deprecated with removal after v27.
- dimensionsIterable[str],DimensionGroup,DimensionGraph, optional
- Dimensions identified by all data IDs in the collection. Must be provided unless - graphis.
- hasFullbool, optional
- If - True, the caller guarantees that- DataCoordinate.hasFullreturns- Truefor all given data IDs. If- False, no such guarantee is made, and- DataCoordinateSet.hasFullwill always return- False. If- None(default),- DataCoordinateSet.hasFullwill be computed from the given data IDs, immediately if- checkis- True, or on first use if- checkis- False.
- hasRecordsbool, optional
- If - True, the caller guarantees that- DataCoordinate.hasRecordsreturns- Truefor all given data IDs. If- False, no such guarantee is made and- DataCoordinateSet.hasRecordswill always return- False. If- None(default),- DataCoordinateSet.hasRecordswill be computed from the given data IDs, immediately if- checkis- True, or on first use if- checkis- False.
- checkbool, optional
- If - True(default) check that all data IDs are consistent with the given- graphand state flags at construction. If- False, no checking will occur.
- universeDimensionUniverse
- Object that manages all dimension definitions. 
 
- dataIds
 - Methods Summary - subset(dimensions)- Return a sequence whose data IDs identify a subset. - Transform this iterable into a - DataCoordinateSequence.- Methods Documentation - subset(dimensions: DimensionGraph | DimensionGroup | Iterable[str]) DataCoordinateSequence¶
- Return a sequence whose data IDs identify a subset. - Parameters:
- dimensionsDimensionGraph,DimensionGroup, orIterable[str]
- Dimensions to be identified by the data IDs in the returned iterable. Must be a subset of - self.dimensions.
 
- dimensions
- Returns:
- setDataCoordinateSequence
- A - DataCoordinateSequencewith- set.graph == graph. Will be- selfif- graph == self.graph. Elements are equivalent to those that would be created by calling- DataCoordinate.subseton all elements in- self, in the same order and with no deduplication.
 
- set
 
 - toSequence() DataCoordinateSequence¶
- Transform this iterable into a - DataCoordinateSequence.- Returns:
- seqDataCoordinateSequence
- A new - DatasetCoordinateSequencewith the same elements as- self, in the same order. May be- selfif it is already a- DataCoordinateSequence.
 
- seq