|
lsst.obs.base
20.0.0-69-g8f355a9+701c885a11
|
Public Member Functions | |
| def | __init__ (self, str dimension, Optional[str] gen2key=None, Optional[type] dtype=None) |
| def | __str__ (self) |
| Any | extract (self, dict gen2id, Optional[BaseSkyMap] skyMap, Optional[str] skyMapName, str datasetTypeName) |
| def | __repr__ (self) |
| def | translate (self, dict gen2id, dict gen3id, Optional[BaseSkyMap] skyMap, Optional[str] skyMapName, str datasetTypeName) |
Public Attributes | |
| gen2key | |
| dtype | |
| dimension | |
A KeyHandler that simply copies a value from a Gen3 data ID.
Parameters
----------
dimension : `str`
Name of the Gen3 dimension produced by this handler.
dtype : `type`, optional
If not `None`, the type that values for this key must be an
instance of.
Definition at line 124 of file translators.py.
| def lsst.obs.base.gen2to3.translators.CopyKeyHandler.__init__ | ( | self, | |
| str | dimension, | ||
| Optional[str] | gen2key = None, |
||
| Optional[type] | dtype = None |
||
| ) |
Definition at line 135 of file translators.py.
|
inherited |
Definition at line 50 of file translators.py.
| def lsst.obs.base.gen2to3.translators.CopyKeyHandler.__str__ | ( | self | ) |
Definition at line 143 of file translators.py.
| Any lsst.obs.base.gen2to3.translators.CopyKeyHandler.extract | ( | self, | |
| dict | gen2id, | ||
| Optional[BaseSkyMap] | skyMap, | ||
| Optional[str] | skyMapName, | ||
| str | datasetTypeName | ||
| ) |
Extract a Gen3 data ID value from a Gen2 data ID.
Parameters
----------
gen2id: `dict`
Gen2 data ID from which to draw key-value pairs from.
skyMap: `BaseSkyMap`, optional
SkyMap that defines the tracts and patches used in the Gen2 data
ID, if any.
skyMapName: `str`
Name of the Gen3 skymap dimension that defines the tracts and
patches used in the Gen3 data ID.
datasetTypeName: `str`
Name of the dataset type.
Reimplemented from lsst.obs.base.gen2to3.translators.KeyHandler.
Definition at line 146 of file translators.py.
|
inherited |
Update a Gen3 data ID dict with a single key-value pair from a Gen2
data ID.
This method is implemented by the base class and is not expected to
be re-implemented by subclasses.
Parameters
----------
gen2id: `dict`
Gen2 data ID from which to draw key-value pairs from.
gen3id: `dict`
Gen3 data ID to update in-place.
skyMap: `BaseSkyMap`, optional
SkyMap that defines the tracts and patches used in the Gen2 data
ID, if any.
skyMapName: `str`
Name of the Gen3 skymap dimension that defines the tracts and
patches used in the Gen3 data ID.
datasetTypeName: `str`
Name of the dataset type.
Definition at line 53 of file translators.py.
|
inherited |
Definition at line 46 of file translators.py.
| lsst.obs.base.gen2to3.translators.CopyKeyHandler.dtype |
Definition at line 138 of file translators.py.
| lsst.obs.base.gen2to3.translators.CopyKeyHandler.gen2key |
Definition at line 137 of file translators.py.
1.8.18