22 from __future__
import absolute_import, division, print_function
24 __all__ = [
"addTransformMapMethods"]
28 """Add pure python methods to an instantiation of a TransformMap<CoordSys> class
30 @param[in] cls The class to which to add the methods, e.g. lsst::afw::cameraGeom::CameraTransformMap
34 """Get an iterator over coordinate systems"""
35 return iter(self.getCoordSysList())
37 def get(self, coordSys, default=None):
38 """Get an XYTransform that transforms from `coordSys` to the native coordinate system
39 in the forward direction.
41 @parameter[in] coordSys Coordinate system of desired transform
42 @param[in] default Value to return if `coordSys` is not found in this TransformMap
48 cls.__iter__ = __iter__