|
LSST Applications
21.0.0-1-g8760c09+64c1bc5aa5,21.0.0-1-ga51b5d4+5491f2a448,21.0.0-12-gbc0a1a5+358ec59a0b,21.0.0-16-gec61338+5610ae7019,21.0.0-17-g535a0ce+68fccf98ea,21.0.0-17-g712f02f+45471446cb,21.0.0-17-gd94932e+2079490dd7,21.0.0-18-g7027a3f+4cbab02c09,21.0.0-2-g103fe59+06c026c8ca,21.0.0-2-g45278ab+64c1bc5aa5,21.0.0-2-g5242d73+6960a99322,21.0.0-2-g7f82c8f+67f3a3c28a,21.0.0-2-ga326454+67f3a3c28a,21.0.0-2-gde069b7+4f46bdaea8,21.0.0-2-gecfae73+2147fbf537,21.0.0-2-gfc62afb+6960a99322,21.0.0-20-gddd4cb5+65cad37c35,21.0.0-23-gd55139e+1c650b9db3,21.0.0-23-gdb5a2aa5+0812f74ba3,21.0.0-3-g357aad2+4d30138d3a,21.0.0-3-g4a4ce7f+6960a99322,21.0.0-3-g4be5c26+6960a99322,21.0.0-3-gd7ab7aa+fdc5edd43f,21.0.0-3-ge02ed75+68fccf98ea,21.0.0-35-g4939cbb3d+fb0e51fe34,21.0.0-4-g591bb35+68fccf98ea,21.0.0-4-g65b4814+65cad37c35,21.0.0-4-g7dab645+661e67791c,21.0.0-4-ge8a399c+f93516e5e6,21.0.0-5-g8c1d971+7b9a448d34,21.0.0-5-gcc89fd6+fdc5edd43f,21.0.0-5-gd00fb1e+d528b983c0,21.0.0-6-g0bf7090+18535a8d22,21.0.0-6-gc675373+6960a99322,21.0.0-7-gdf92d54+64c1bc5aa5,21.0.0-8-g5674e7b+8087abed30,21.0.0-85-g296c1d01+374697a2d0,master-gac4afde19b+68fccf98ea,w.2021.20
LSST Data Management Base Package
|
Functions | |
| None | buildLightweightButler (Butler butler, QuantumGraph graph, str outputLocation, str run, *bool clobber=False, Optional[Callable[[Butler], Butler]] butlerModifier=None, Optional[Iterable[str]] collections=None) |
Variables | |
| DataSetTypeMap = Mapping[DatasetType, Set[DataCoordinate]] | |
| None lsst.pipe.base.makeLightWeightButler.buildLightweightButler | ( | Butler | butler, |
| QuantumGraph | graph, | ||
| str | outputLocation, | ||
| str | run, | ||
| *bool | clobber = False, |
||
| Optional[Callable[[Butler], Butler]] | butlerModifier = None, |
||
| Optional[Iterable[str]] | collections = None |
||
| ) |
buildLightweightButler is a function that is responsible for exporting
input `QuantumGraphs` into a new minimal `~lsst.daf.butler.Butler` which
only contains datasets specified by the `QuantumGraph`. These datasets are
both those that already exist in the input `~lsst.daf.butler.Butler`, and
those that are expected to be produced during the execution of the
`QuantumGraph`.
Parameters
----------
butler : `lsst.daf.butler.Bulter`
This is the existing `~lsst.daf.butler.Butler` instance from which
existing datasets will be exported. This should be the
`~lsst.daf.butler.Butler` which was used to create any `QuantumGraphs`
that will be converted with this object.
graph : `QuantumGraph`
Graph containing nodes that are to be exported into a lightweight
butler
outputLocation : `str`
Location at which the lightweight butler is to be exported
run : `str`
The run collection that the exported datasets are to be placed in.
clobber : `bool`, Optional
By default a butler will not be created if a file or directory
already exists at the output location. If this is set to `True`
what is at the location will be deleted prior to running the
export. Defaults to `False`
butlerModifier : `~typing.Callable`, Optional
If supplied this should be a callable that accepts a
`~lsst.daf.butler.Butler`, and returns an instantiated
`~lsst.daf.butler.Butler`. This callable may be used to make any
modifications to the `~lsst.daf.butler.Butler` desired. This
will be called after importing all datasets that exist in the input
`~lsst.daf.butler.Butler` but prior to inserting Datasets expected
to be produced. Examples of what this method could do include
things such as creating collections/runs/ etc.
collections : `~typing.Iterable` of `str`, Optional
An iterable of collection names that will be exported from the input
`~lsst.daf.butler.Butler` when creating the lightweight butler. If not
supplied the `~lsst.daf.butler.Butler`\ 's `~lsst.daf.butler.Registry`
default collections will be used.
Raises
------
FileExistsError
Raise if something exists in the filesystem at the specified output
location and clobber is `False`
Definition at line 180 of file makeLightWeightButler.py.
| lsst.pipe.base.makeLightWeightButler.DataSetTypeMap = Mapping[DatasetType, Set[DataCoordinate]] |
Definition at line 40 of file makeLightWeightButler.py.