PreFlightUnitsRow¶
-
class
lsst.daf.butler.
PreFlightUnitsRow
(dataId, datasetRefs)¶ Bases:
object
Simple data class holding combination of DataUnit values for one row returned by pre-flight solver.
Logically instance of this class represents a single “path” connecting a set of DatasetRefs which exist or may exist for a given set of DatasetTypes based on the DataUnit relational algebra.
Pre-flight solver returns a sequence of
PreFlightUnitsRow
instances, each instance will have uniquedataId
, butDatasetRef
indatasetRefs
are not necessarily unique. For example when pre-flight solver generates data for Quantum which has two DatasetRefs on input and one on output it will create twoPreFlightUnitsRow
instances with the sameDatasetRef
for output dataset type. It is caller’s responsibility to combine multiplePreFlightUnitsRow
into a suitable structure (e.g. QuantumGraph).Note
In current implementation of
SqlPreFlight
the instances ofDatasetRef
do not havecomponents
property correctly filled. If you need to know dataset composition you have to re-fetch dataset again usingRegistry.getDataset
method.Attributes: - dataId :
dict
Maps DataUnit link name to its corresponding value.
- datasetRefs :
dict
Maps
DatasetType
to its correspondingDatasetRef
.
Attributes Summary
dataId
datasetRefs
Attributes Documentation
-
dataId
¶
-
datasetRefs
¶
- dataId :