LSST Applications
22.0.1,22.0.1+01bcf6a671,22.0.1+046ee49490,22.0.1+05c7de27da,22.0.1+0c6914dbf6,22.0.1+1220d50b50,22.0.1+12fd109e95,22.0.1+1a1dd69893,22.0.1+1c910dc348,22.0.1+1ef34551f5,22.0.1+30170c3d08,22.0.1+39153823fd,22.0.1+611137eacc,22.0.1+771eb1e3e8,22.0.1+94e66cc9ed,22.0.1+9a075d06e2,22.0.1+a5ff6e246e,22.0.1+a7db719c1a,22.0.1+ba0d97e778,22.0.1+bfe1ee9056,22.0.1+c4e1e0358a,22.0.1+cc34b8281e,22.0.1+d640e2c0fa,22.0.1+d72a2e677a,22.0.1+d9a6b571bd,22.0.1+e485e9761b,22.0.1+ebe8d3385e
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, *args, DimensionGraph universe) |
_DatasetDict | fromDatasetTypes (cls, Iterable[DatasetType] datasetTypes, *DimensionUniverse universe) |
_DatasetDict | fromSubset (cls, Iterable[DatasetType] datasetTypes, _DatasetDict first, *_DatasetDict rest) |
DimensionGraph | dimensions (self) |
NamedKeyDict[DatasetType, DatasetRef] | unpackSingleRefs (self) |
NamedKeyDict[DatasetType, DatasetRef] | unpackMultiRefs (self) |
Iterator[DatasetRef] | extract (self, DatasetType datasetType, Iterable[DataCoordinate] dataIds) |
Public Attributes | |
universe | |
A custom dictionary that maps `DatasetType` to a nested dictionary of the known `DatasetRef` instances of that type. Parameters ---------- args Positional arguments are forwarded to the `dict` constructor. universe : `DimensionUniverse` Universe of all possible dimensions.
Definition at line 63 of file graphBuilder.py.
def lsst.pipe.base.graphBuilder._DatasetDict.__init__ | ( | self, | |
* | args, | ||
DimensionGraph | universe | ||
) |
Definition at line 74 of file graphBuilder.py.
DimensionGraph lsst.pipe.base.graphBuilder._DatasetDict.dimensions | ( | self | ) |
The union of all dimensions used by all dataset types in this dictionary, including implied dependencies (`DimensionGraph`).
Definition at line 124 of file graphBuilder.py.
Iterator[DatasetRef] lsst.pipe.base.graphBuilder._DatasetDict.extract | ( | self, | |
DatasetType | datasetType, | ||
Iterable[DataCoordinate] | dataIds | ||
) |
Iterate over the contained `DatasetRef` instances that match the given `DatasetType` and data IDs. Parameters ---------- datasetType : `DatasetType` Dataset type to match. dataIds : `Iterable` [ `DataCoordinate` ] Data IDs to match. Returns ------- refs : `Iterator` [ `DatasetRef` ] DatasetRef instances for which ``ref.datasetType == datasetType`` and ``ref.dataId`` is in ``dataIds``.
Definition at line 163 of file graphBuilder.py.
_DatasetDict lsst.pipe.base.graphBuilder._DatasetDict.fromDatasetTypes | ( | cls, | |
Iterable[DatasetType] | datasetTypes, | ||
*DimensionUniverse | universe | ||
) |
Construct a dictionary from a flat iterable of `DatasetType` keys. Parameters ---------- datasetTypes : `iterable` of `DatasetType` DatasetTypes to use as keys for the dict. Values will be empty dictionaries. universe : `DimensionUniverse` Universe of all possible dimensions. Returns ------- dictionary : `_DatasetDict` A new `_DatasetDict` instance.
Definition at line 79 of file graphBuilder.py.
_DatasetDict lsst.pipe.base.graphBuilder._DatasetDict.fromSubset | ( | cls, | |
Iterable[DatasetType] | datasetTypes, | ||
_DatasetDict | first, | ||
*_DatasetDict | rest | ||
) |
Return a new dictionary by extracting items corresponding to the given keys from one or more existing dictionaries. Parameters ---------- datasetTypes : `iterable` of `DatasetType` DatasetTypes to use as keys for the dict. Values will be obtained by lookups against ``first`` and ``rest``. first : `_DatasetDict` Another dictionary from which to extract values. rest Additional dictionaries from which to extract values. Returns ------- dictionary : `_DatasetDict` A new dictionary instance.
Definition at line 99 of file graphBuilder.py.
NamedKeyDict[DatasetType, DatasetRef] lsst.pipe.base.graphBuilder._DatasetDict.unpackMultiRefs | ( | self | ) |
Unpack nested multi-element `DatasetRef` dicts into a new mapping with `DatasetType` keys and `set` of `DatasetRef` values. Returns ------- dictionary : `NamedKeyDict` Dictionary mapping `DatasetType` to `DatasetRef`, with both `DatasetType` instances and string names usable as keys.
Definition at line 151 of file graphBuilder.py.
NamedKeyDict[DatasetType, DatasetRef] lsst.pipe.base.graphBuilder._DatasetDict.unpackSingleRefs | ( | self | ) |
Unpack nested single-element `DatasetRef` dicts into a new mapping with `DatasetType` keys and `DatasetRef` values. This method assumes that each nest contains exactly one item, as is the case for all "init" datasets. Returns ------- dictionary : `NamedKeyDict` Dictionary mapping `DatasetType` to `DatasetRef`, with both `DatasetType` instances and string names usable as keys.
Definition at line 133 of file graphBuilder.py.
lsst.pipe.base.graphBuilder._DatasetDict.universe |
Definition at line 76 of file graphBuilder.py.