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, butlerSubset, dataId) |
def | get (self, datasetType=None, **rest) |
def | put (self, obj, datasetType=None, doBackup=False, **rest) |
def | datasetExists (self, datasetType=None, write=False, **rest) |
def | getButler (self) |
Public Attributes | |
butlerSubset | |
dataId | |
Static Public Attributes | |
float | GENERATION = 2.5 |
A shim for a Gen2 `~lsst.daf.persistence.ButlerDataRef` with a Gen3 `~lsst.daf.butler.Butler` backend. Parameters ---------- butlerSubset : `ShimButlerSubset` ButlerSubset shim instance. Sets the butler and default dataset type used by the Dataref. dataId : `dict` or `~lsst.daf.butler.DataId` Generation 3 data ID associated with this reference.
def lsst.pipe.base.shims.ShimDataRef.__init__ | ( | self, | |
butlerSubset, | |||
dataId | |||
) |
def lsst.pipe.base.shims.ShimDataRef.datasetExists | ( | self, | |
datasetType = None , |
|||
write = False , |
|||
** | rest | ||
) |
Check whether a datataset exists in the repository. Parameters ---------- datasetType : `str`, optional Name of the dataset type. Defaults to the dataset type used to construct the `ShimButlerSubset`. write : `bool` This option is provided for compatibility with `lsst.daf.persistence.ButlerDataRef`, but must be `False`. rest Additional arguments forwarded to `ShimButler.datasetExists`. Returns ------- exists : `bool` `True` if the dataset is present in the repository, `False` otherwise.
Definition at line 290 of file shims.py.
def lsst.pipe.base.shims.ShimDataRef.get | ( | self, | |
datasetType = None , |
|||
** | rest | ||
) |
Retrieve a dataset. Parameters ---------- datasetType : `str`, optional. Name of the dataset type. Defaults to the dataset type used to construct the `ShimButlerSubset`. rest Additional arguments forwarded to `ShimButler.get`. Returns ------- dataset Retrieved object. Raises ------ `~lsst.daf.persistence.NoResults` Raised if the dataset does not exist.
Definition at line 245 of file shims.py.
def lsst.pipe.base.shims.ShimDataRef.getButler | ( | self | ) |
def lsst.pipe.base.shims.ShimDataRef.put | ( | self, | |
obj, | |||
datasetType = None , |
|||
doBackup = False , |
|||
** | rest | ||
) |
Write a dataset. Parameters ---------- obj Object to write. datasetType : `str`, optional Name of the dataset type. Defaults to the dataset type used to construct the `ShimButlerSubset`. doBackup : `bool` This option is provided for compatibility with `lsst.daf.persistence.ButlerDataRef`, but must be `False`. rest Additional arguments forwarded to `ShimButler.put`.
Definition at line 270 of file shims.py.
|
static |