22 from __future__
import absolute_import, division, print_function
24 from lsst.pex.exceptions
import InvalidParameterError
26 from .
import transform
33 matrix = self._getJacobian(x)
34 matrix.shape = (self.getToEndpoint().getNAxes(),
35 self.getFromEndpoint().getNAxes())
40 if first.getToEndpoint() == self.getFromEndpoint():
41 return self._of(first)
43 raise InvalidParameterError(
44 "Cannot concatenate %r and %r: endpoints do not match."
48 endpoints = (
"Generic",
"Point2",
"Point3",
"SpherePoint")
50 for fromPoint
in endpoints:
51 for toPoint
in endpoints:
52 name =
"Transform" + fromPoint +
"To" + toPoint
53 cls = getattr(transform, name)
54 cls.getJacobian = getJacobian