Coverage for python/lsst/afw/geom/transformConfig.py : 95%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
# # LSST Data Management System # Copyright 2008, 2009, 2010 LSST Corporation. # # This product includes software developed by the # LSST Project (http://www.lsst.org/). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the LSST License Statement and # the GNU General Public License along with this program. If not, # see <http://www.lsstcorp.org/LegalNotices/>. #
ConfigDictField, ConfigurableField makeRadialTransform
"IdentityTransformConfig", "AffineTransformConfig", "RadialTransformConfig", "MultiTransformConfig"]
""""A registry of ``Transform`` factories
A ``Transform`` factory is a function that obeys these rules: - has an attribute ``ConfigClass`` - takes one argument, ``config`` (an instance of ``ConfigClass``) by name - returns a ``Transform`` """ )
"""A Config representing a ``Transform`` that does nothing.
See Also -------- lsst.afw.geom.makeIdentityTransform """
"""Make an identity ``Transform`` """
"""A Config representing a single ``Transform`` in a compound ``Transform``.
See Also -------- lsst.afw.geom.MultiTransformConfig """ doc="Transform factory", target=identityFactory, )
"""Invert a ``Transform`` specified by config. """
"""A Config representing an affine ``Transform``.
See Also -------- lsst.afw.geom.makeTransform """ doc="2x2 linear matrix in the usual numpy order; " "to rotate a vector by theta use: cos(theta), sin(theta), " "-sin(theta), cos(theta)", dtype=float, length=4, default=(1, 0, 0, 1), ) doc="x, y translation vector", dtype=float, length=2, default=(0, 0), )
"""Make an affine ``Transform`` """
"""A Config representing a radially symmetric ``Transform``.
See Also -------- lsst.afw.geom.makeRadialTransform """ doc="Coefficients for the radial polynomial; coeff[0] must be 0", dtype=float, minLength=1, optional=False, )
return "invalid radial transform coeffs %s: " % (self.coeffs,) + "need len(coeffs)=0 or len(coeffs)>1, coeffs[0]==0, " "and coeffs[1]!=0")
"""Make a radial ``Transform`` """
"""A Config representing a chain of consecutive ``Transforms``. """ doc="Dict of index: OneTransformConfig (a transform wrapper); " "key order is transform order", keytype=int, itemtype=OneTransformConfig, )
"""Concatenate multiple ``Transforms`` """ for key in transformKeys]
# Can't use then(self, other) directly because no single Transform class
"""Config that identifies ``Transforms`` by keyword.
Supported configs:
``"identity"`` `IdentityTransformConfig` ``"inverted"`` `OneTransformConfig` ``"affine"`` `AffineTransformConfig` ``"radial"`` `RadialTransformConfig` ``"multi"`` `MultiTransformConfig` """ doc="a Transform from the registry" ) |