|
lsst.obs.base
20.0.0-69-g8f355a9+701c885a11
|
Public Member Functions | |
| def | __init__ (self, List[KeyHandler] handlers, Optional[BaseSkyMap] skyMap, Optional[str] skyMapName, str datasetTypeName, Log log) |
| def | __str__ (self) |
| Tuple[dict, Optional[str]] | __call__ (self, Dict[str, Any] gen2id, *bool partial=False) |
| FrozenSet[str] | dimensionNames (self) |
Public Attributes | |
| handlers | |
| skyMap | |
| skyMapName | |
| datasetTypeName | |
| log | |
Callable object that translates Gen2 Data IDs to Gen3 Data IDs for a
particular DatasetType.
Translators should usually be constructed via
`TranslatorFactory.makeMatching`.
Parameters
----------
handlers : `list`
A list of KeyHandlers this Translator should use.
skyMap : `BaseSkyMap`, optional
SkyMap instance used to define any tract or patch Dimensions.
skyMapName : `str`
Gen3 SkyMap Dimension name to be associated with any tract or patch
Dimensions.
datasetTypeName : `str`
Name of the dataset type whose data IDs this translator handles.
Definition at line 470 of file translators.py.
| def lsst.obs.base.gen2to3.translators.Translator.__init__ | ( | self, | |
| List[KeyHandler] | handlers, | ||
| Optional[BaseSkyMap] | skyMap, | ||
| Optional[str] | skyMapName, | ||
| str | datasetTypeName, | ||
| Log | log | ||
| ) |
Definition at line 489 of file translators.py.
| Tuple[dict, Optional[str]] lsst.obs.base.gen2to3.translators.Translator.__call__ | ( | self, | |
| Dict[str, Any] | gen2id, | ||
| *bool | partial = False |
||
| ) |
Return a Gen3 data ID that corresponds to the given Gen2 data ID.
Definition at line 503 of file translators.py.
| def lsst.obs.base.gen2to3.translators.Translator.__str__ | ( | self | ) |
Definition at line 499 of file translators.py.
| FrozenSet[str] lsst.obs.base.gen2to3.translators.Translator.dimensionNames | ( | self | ) |
The names of the dimensions populated by this Translator (`frozenset`).
Definition at line 522 of file translators.py.
| lsst.obs.base.gen2to3.translators.Translator.datasetTypeName |
Definition at line 493 of file translators.py.
| lsst.obs.base.gen2to3.translators.Translator.handlers |
Definition at line 490 of file translators.py.
| lsst.obs.base.gen2to3.translators.Translator.log |
Definition at line 494 of file translators.py.
| lsst.obs.base.gen2to3.translators.Translator.skyMap |
Definition at line 491 of file translators.py.
| lsst.obs.base.gen2to3.translators.Translator.skyMapName |
Definition at line 492 of file translators.py.
1.8.18