def testTrivial(self): """Add no distortion""" for order in (3, 4, 5, 6): self.doTest("testTrivial", afwGeom.makeIdentityTransform(), order=order, doPlot=False)
def testLinearize(self): for transform, invertible in ( (afwGeom.TransformPoint2ToPoint2(makeForwardPolyMap(2, 2)), False), (afwGeom.makeIdentityTransform(), True), (afwGeom.makeTransform(lsst.geom.AffineTransform(np.array([[3.0, -2.0], [2.0, -1.0]]))), True), (afwGeom.makeRadialTransform([0.0, 8.0e-05, 0.0, -4.5e-12]), True), ): self.checkLinearize(transform, invertible)
def testTrivial(self): """Test fit with no distortion """ self.doTest(afwGeom.makeIdentityTransform())
def addBadCameraSys(dw): """Add an invalid camera system""" dw.transMap[cameraGeom.CameraSys("foo", "wrong detector")] = \ afwGeom.makeIdentityTransform()