DeferredDatasetHandle¶
-
class
lsst.daf.butler.DeferredDatasetHandle(butler: Butler, datasetRefOrType: Union[lsst.daf.butler.core.datasets.DatasetRef, lsst.daf.butler.core.datasets.DatasetType, str], dataId: Union[dict, lsst.daf.butler.core.dimensions.coordinate.DataCoordinate, Mapping[str, Any]], parameters: Optional[dict], kwds: dict)¶ Bases:
objectThis is a class to support deferred loading of a dataset from a butler.
- Parameters
- butler
Butler The butler that will be used to fetch the deferred dataset
- datasetRefOrType
DatasetRef,DatasetType, orstr When
DatasetRefthedataIdshould beNone. Otherwise theDatasetTypeor name thereof.- dataId
dictorDataCoordinate, optional A dictionary of
Dimensionlink name, value pairs that label theDatasetRefwithin a Collection. WhenNone, aDatasetRefshould be provided as the first argument.- parameters
dict Additional StorageClass-defined options to control reading, typically used to efficiently read only a subset of the dataset.
- kwds
dict Additional keyword arguments used to augment or construct a
DataId. SeeDataIdconstruction parameters.
- butler
Methods Summary
get([parameters])Retrieves the dataset pointed to by this handle
Methods Documentation
-
get(parameters: Union[None, dict] = None, **kwargs: dict) → Any¶ Retrieves the dataset pointed to by this handle
This handle may be used multiple times, possibly with different parameters.
- Parameters
- parameters
dictor None The parameters argument will be passed to the butler get method. It defaults to None. If the value is not None, this dict will be merged with the parameters dict used to construct the
DeferredDatasetHandleclass.- kwargs
dict This argument is deprecated and only exists to support legacy gen2 butler code during migration. It is completely ignored and will be removed in the future.
- parameters
- Returns
- return
Object The dataset pointed to by this handle
- return