lsst.obs.base  19.0.0-20-g6de566f+3
Public Member Functions | Public Attributes | List of all members
lsst.obs.base.gen2to3.translators.Translator Class Reference

Public Member Functions

def __init__
 
def addRule
 
def makeMatching
 
def __call__
 
def dimensionNames (self)
 

Public Attributes

 handlers
 
 skyMap
 
 skyMapName
 
 datasetTypeName
 

Detailed Description

Callable object that translates Gen2 Data IDs to Gen3 Data IDs for a
particular DatasetType.

Translators should usually be constructed via the `makeMatching` method.

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 230 of file translators.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.obs.base.gen2to3.translators.Translator.__init__ (   self,
  handlers 
)

Definition at line 248 of file translators.py.

Member Function Documentation

◆ __call__()

def lsst.obs.base.gen2to3.translators.Translator.__call__ (   self,
  gen2id 
)

Definition at line 361 of file translators.py.

◆ addRule()

def lsst.obs.base.gen2to3.translators.Translator.addRule (   cls,
  handler 
)

Definition at line 274 of file translators.py.

◆ dimensionNames()

def lsst.obs.base.gen2to3.translators.Translator.dimensionNames (   self)
The names of the dimensions populated by this Translator
(`frozenset`).

Definition at line 379 of file translators.py.

◆ makeMatching()

def lsst.obs.base.gen2to3.translators.Translator.makeMatching (   cls,
  datasetTypeName 
)

Definition at line 315 of file translators.py.

Member Data Documentation

◆ datasetTypeName

lsst.obs.base.gen2to3.translators.Translator.datasetTypeName

Definition at line 253 of file translators.py.

◆ handlers

lsst.obs.base.gen2to3.translators.Translator.handlers

Definition at line 250 of file translators.py.

◆ skyMap

lsst.obs.base.gen2to3.translators.Translator.skyMap

Definition at line 251 of file translators.py.

◆ skyMapName

lsst.obs.base.gen2to3.translators.Translator.skyMapName

Definition at line 252 of file translators.py.


The documentation for this class was generated from the following file: