DataCoordinateIterable¶
- 
class lsst.daf.butler.DataCoordinateIterable¶
- Bases: - collections.abc.Iterable,- typing.Generic- An abstract base class for homogeneous iterables of data IDs. - All elements of a - DataCoordinateIterableidentify the same set of dimensions (given by the- graphproperty) and generally have the same- DataCoordinate.hasFulland- DataCoordinate.hasRecordsflag values.- Attributes Summary - graph- Dimensions identified by these data IDs ( - DimensionGraph).- universe- Universe that defines all known compatible dimensions. - Methods Summary - fromScalar(dataId)- Return a - DataCoordinateIterablecontaining the single data ID.- hasFull()- Indicate if all data IDs in this iterable identify all dimensions. - hasRecords()- Return whether all data IDs in this iterable contain records. - subset(graph)- Return a subset iterable. - toSequence()- Transform this iterable into a - DataCoordinateSequence.- toSet()- Transform this iterable into a - DataCoordinateSet.- Attributes Documentation - 
graph¶
- Dimensions identified by these data IDs ( - DimensionGraph).
 - 
universe¶
- Universe that defines all known compatible dimensions. 
 - Methods Documentation - 
static fromScalar(dataId: lsst.daf.butler.core.dimensions._coordinate.DataCoordinate) → lsst.daf.butler.core.dimensions._dataCoordinateIterable._ScalarDataCoordinateIterable¶
- Return a - DataCoordinateIterablecontaining the single data ID.- Parameters: - dataId : DataCoordinate
- Data ID to adapt. Must be a true - DataCoordinateinstance, not an arbitrary mapping. No runtime checking is performed.
 - Returns: - iterable : DataCoordinateIterable
- A - DataCoordinateIterableinstance of unspecified (i.e. implementation-detail) subclass. Guaranteed to implement the- collections.abc.Sized(i.e.- __len__) and- collections.abc.Container(i.e.- __contains__) interfaces as well as that of- DataCoordinateIterable.
 
- dataId : 
 - 
hasFull() → bool¶
- Indicate if all data IDs in this iterable identify all dimensions. - Not just required dimensions. - Returns: 
 - 
hasRecords() → bool¶
- Return whether all data IDs in this iterable contain records. - Returns: 
 - 
subset(graph: lsst.daf.butler.core.dimensions._graph.DimensionGraph) → lsst.daf.butler.core.dimensions._dataCoordinateIterable.DataCoordinateIterable¶
- Return a subset iterable. - This subset iterable returns data IDs that identify a subset of the dimensions that this one’s do. - Parameters: - graph : DimensionGraph
- Dimensions to be identified by the data IDs in the returned iterable. Must be a subset of - self.graph.
 - Returns: - iterable : DataCoordinateIterable
- A - DataCoordinateIterablewith- iterable.graph == graph. May be- selfif- graph == self.graph. Elements are equivalent to those that would be created by calling- DataCoordinate.subseton all elements in- self, possibly with deduplication and/or reordering (depending on the subclass, which may make more specific guarantees).
 
- graph : 
 - 
toSequence() → lsst.daf.butler.core.dimensions._dataCoordinateIterable.DataCoordinateSequence¶
- Transform this iterable into a - DataCoordinateSequence.- Returns: - seq : DataCoordinateSequence
- A new - DatasetCoordinateSequencewith the same elements as- self, in the same order. May be- selfif it is already a- DataCoordinateSequence.
 
- seq : 
 - 
toSet() → lsst.daf.butler.core.dimensions._dataCoordinateIterable.DataCoordinateSet¶
- Transform this iterable into a - DataCoordinateSet.- Returns: - set : DataCoordinateSet
- A - DatasetCoordinateSetinstance with the same elements as- self, after removing any duplicates. May be- selfif it is already a- DataCoordinateSet.
 
- set : 
 
-