LSST Applications
21.0.0+75b29a8a7f,21.0.0+e70536a077,21.0.0-1-ga51b5d4+62c747d40b,21.0.0-10-gbfb87ad6+3307648ee3,21.0.0-15-gedb9d5423+47cba9fc36,21.0.0-2-g103fe59+fdf0863a2a,21.0.0-2-g1367e85+d38a93257c,21.0.0-2-g45278ab+e70536a077,21.0.0-2-g5242d73+d38a93257c,21.0.0-2-g7f82c8f+e682ffb718,21.0.0-2-g8dde007+d179fbfa6a,21.0.0-2-g8f08a60+9402881886,21.0.0-2-ga326454+e682ffb718,21.0.0-2-ga63a54e+08647d4b1b,21.0.0-2-gde069b7+26c92b3210,21.0.0-2-gecfae73+0445ed2f95,21.0.0-2-gfc62afb+d38a93257c,21.0.0-27-gbbd0d29+ae871e0f33,21.0.0-28-g5fc5e037+feb0e9397b,21.0.0-3-g21c7a62+f4b9c0ff5c,21.0.0-3-g357aad2+57b0bddf0b,21.0.0-3-g4be5c26+d38a93257c,21.0.0-3-g65f322c+3f454acf5d,21.0.0-3-g7d9da8d+75b29a8a7f,21.0.0-3-gaa929c8+9e4ef6332c,21.0.0-3-ge02ed75+4b120a55c4,21.0.0-4-g3300ddd+e70536a077,21.0.0-4-g591bb35+4b120a55c4,21.0.0-4-gc004bbf+4911b9cd27,21.0.0-4-gccdca77+f94adcd104,21.0.0-4-ge8fba5a+2b3a696ff9,21.0.0-5-gb155db7+2c5429117a,21.0.0-5-gdf36809+637e4641ee,21.0.0-6-g00874e7+c9fd7f7160,21.0.0-6-g4e60332+4b120a55c4,21.0.0-7-gc8ca178+40eb9cf840,21.0.0-8-gfbe0b4b+9e4ef6332c,21.0.0-9-g2fd488a+d83b7cd606,w.2021.05
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, *CameraMapper mapper, Sequence[str] labels=(), **kwargs) |
bool | isDatasetTypeSpecial (self, str datasetTypeName) |
Iterator[Tuple[str, CameraMapperMapping]] | iterMappings (self) |
RepoWalker.Target | makeRepoWalkerTarget (self, str datasetTypeName, str template, Dict[str, type] keys, StorageClass storageClass, FormatterParameter formatter=None, Optional[PathElementHandler] targetHandler=None) |
str | getRun (self, str datasetTypeName, Optional[str] calibDate=None) |
List[str] | getSpecialDirectories (self) |
def | prep (self) |
Iterator[FileDataset] | iterDatasets (self) |
def | findDatasets (self) |
def | expandDataIds (self) |
def | ingest (self) |
None | finish (self) |
Public Attributes | |
mapper | |
collection | |
task | |
root | |
instrument | |
subset | |
A specialization of `RepoConverter` for calibration repositories. Parameters ---------- mapper : `CameraMapper` Gen2 mapper for the data repository. The root associated with the mapper is ignored and need not match the root of the repository. labels : `Sequence` [ `str` ] Strings injected into the names of the collections that calibration datasets are written and certified into (forwarded as the ``extra`` argument to `Instrument` methods that generate collection names and write curated calibrations). **kwargs Additional keyword arguments are forwarded to (and required by) `RepoConverter`.
Definition at line 44 of file calibRepoConverter.py.
def lsst.obs.base.gen2to3.calibRepoConverter.CalibRepoConverter.__init__ | ( | self, | |
*CameraMapper | mapper, | ||
Sequence[str] | labels = () , |
||
** | kwargs | ||
) |
Definition at line 62 of file calibRepoConverter.py.
|
inherited |
Expand the data IDs for all datasets to be inserted. Subclasses may override this method, but must delegate to the base class implementation if they do. This involves queries to the registry, but not writes. It is guaranteed to be called between `findDatasets` and `ingest`.
Definition at line 441 of file repoConverter.py.
|
inherited |
Definition at line 424 of file repoConverter.py.
|
inherited |
Finish conversion of a repository. This is run after ``ingest``, and delegates to `_finish`, which should be overridden by derived classes instead of this method.
Definition at line 511 of file repoConverter.py.
str lsst.obs.base.gen2to3.calibRepoConverter.CalibRepoConverter.getRun | ( | self, | |
str | datasetTypeName, | ||
Optional[str] | calibDate = None |
||
) |
Return the name of the run to insert instances of the given dataset type into in this collection. Parameters ---------- datasetTypeName : `str` Name of the dataset type. calibDate : `str`, optional If not `None`, the "CALIBDATE" associated with this (calibration) dataset in the Gen2 data repository. Returns ------- run : `str` Name of the `~lsst.daf.butler.CollectionType.RUN` collection.
Reimplemented from lsst.obs.base.gen2to3.repoConverter.RepoConverter.
Definition at line 294 of file calibRepoConverter.py.
|
inherited |
Return a list of directory paths that should not be searched for files. These may be directories that simply do not contain datasets (or contain datasets in another repository), or directories whose datasets are handled specially by a subclass. Returns ------- directories : `list` [`str`] The full paths of directories to skip, relative to the repository root.
Reimplemented in lsst.obs.base.gen2to3.rootRepoConverter.RootRepoConverter.
Definition at line 292 of file repoConverter.py.
|
inherited |
Insert converted datasets into the Gen3 repository. Subclasses may override this method, but must delegate to the base class implementation at some point in their own logic. This method is guaranteed to be called after `expandDataIds`.
Definition at line 483 of file repoConverter.py.
bool lsst.obs.base.gen2to3.calibRepoConverter.CalibRepoConverter.isDatasetTypeSpecial | ( | self, | |
str | datasetTypeName | ||
) |
Test whether the given dataset is handled specially by this converter and hence should be ignored by generic base-class logic that searches for dataset types to convert. Parameters ---------- datasetTypeName : `str` Name of the dataset type to test. Returns ------- special : `bool` `True` if the dataset type is special.
Reimplemented from lsst.obs.base.gen2to3.repoConverter.RepoConverter.
Definition at line 69 of file calibRepoConverter.py.
|
inherited |
Iterate over datasets in the repository that should be ingested into the Gen3 repository. The base class implementation yields nothing; the datasets handled by the `RepoConverter` base class itself are read directly in `findDatasets`. Subclasses should override this method if they support additional datasets that are handled some other way. Yields ------ dataset : `FileDataset` Structures representing datasets to be ingested. Paths should be absolute.
Reimplemented in lsst.obs.base.gen2to3.standardRepoConverter.StandardRepoConverter, and lsst.obs.base.gen2to3.rootRepoConverter.RootRepoConverter.
Definition at line 405 of file repoConverter.py.
Iterator[Tuple[str, CameraMapperMapping]] lsst.obs.base.gen2to3.calibRepoConverter.CalibRepoConverter.iterMappings | ( | self | ) |
Iterate over all `CameraMapper` `Mapping` objects that should be considered for conversion by this repository. This this should include any datasets that may appear in the repository, including those that are special (see `isDatasetTypeSpecial`) and those that are being ignored (see `ConvertRepoTask.isDatasetTypeIncluded`); this allows the converter to identify and hence skip these datasets quietly instead of warning about them as unrecognized. Yields ------ datasetTypeName: `str` Name of the dataset type. mapping : `lsst.obs.base.mapping.Mapping` Mapping object used by the Gen2 `CameraMapper` to describe the dataset type.
Reimplemented from lsst.obs.base.gen2to3.repoConverter.RepoConverter.
Definition at line 73 of file calibRepoConverter.py.
RepoWalker.Target lsst.obs.base.gen2to3.calibRepoConverter.CalibRepoConverter.makeRepoWalkerTarget | ( | self, | |
str | datasetTypeName, | ||
str | template, | ||
Dict[str, type] | keys, | ||
StorageClass | storageClass, | ||
FormatterParameter | formatter = None , |
||
Optional[PathElementHandler] | targetHandler = None |
||
) |
Make a struct that identifies a dataset type to be extracted by walking the repo directory structure. Parameters ---------- datasetTypeName : `str` Name of the dataset type (the same in both Gen2 and Gen3). template : `str` The full Gen2 filename template. keys : `dict` [`str`, `type`] A dictionary mapping Gen2 data ID key to the type of its value. storageClass : `lsst.daf.butler.StorageClass` Gen3 storage class for this dataset type. formatter : `lsst.daf.butler.Formatter` or `str`, optional A Gen 3 formatter class or fully-qualified name. targetHandler : `PathElementHandler`, optional Specialist target handler to use for this dataset type. Returns ------- target : `RepoWalker.Target` A struct containing information about the target dataset (much of it simplify forwarded from the arguments).
Reimplemented from lsst.obs.base.gen2to3.repoConverter.RepoConverter.
Definition at line 77 of file calibRepoConverter.py.
|
inherited |
Perform preparatory work associated with the dataset types to be converted from this repository (but not the datasets themselves). Notes ----- This should be a relatively fast operation that should not depend on the size of the repository. Subclasses may override this method, but must delegate to the base class implementation at some point in their own logic. More often, subclasses will specialize the behavior of `prep` by overriding other methods to which the base class implementation delegates. These include: - `iterMappings` - `isDatasetTypeSpecial` - `getSpecialDirectories` - `makeRepoWalkerTarget` This should not perform any write operations to the Gen3 repository. It is guaranteed to be called before `ingest`.
Reimplemented in lsst.obs.base.gen2to3.standardRepoConverter.StandardRepoConverter, and lsst.obs.base.gen2to3.rootRepoConverter.RootRepoConverter.
Definition at line 308 of file repoConverter.py.
lsst.obs.base.gen2to3.calibRepoConverter.CalibRepoConverter.collection |
Definition at line 65 of file calibRepoConverter.py.
|
inherited |
Definition at line 213 of file repoConverter.py.
lsst.obs.base.gen2to3.calibRepoConverter.CalibRepoConverter.mapper |
Definition at line 64 of file calibRepoConverter.py.
|
inherited |
Definition at line 212 of file repoConverter.py.
|
inherited |
Definition at line 214 of file repoConverter.py.
|
inherited |
Definition at line 211 of file repoConverter.py.