lsst.afw  13.0-91-g2a3e2ee
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
transformConfig.py
Go to the documentation of this file.
1 from __future__ import absolute_import, division, print_function
2 
3 import lsst.pex.config as pexConfig
4 from lsst.afw.geom import xyTransformRegistry
5 
6 
7 class TransformConfig(pexConfig.Config):
8  transform = xyTransformRegistry.makeField(
9  doc = "an XYTransform from the registry"
10  )
11 
12 
13 class TransformMapConfig(pexConfig.Config):
14  transforms = pexConfig.ConfigDictField(
15  doc = "Dict of coordinate system name: TransformConfig",
16  keytype = str,
17  itemtype = TransformConfig,
18  )
19  nativeSys = pexConfig.Field(
20  doc = "Name of native coordinate system",
21  dtype = str,
22  optional = False,
23  )