Beispiel #1
0
 def testTrivial(self):
     """Add no distortion"""
     for order in (3, 4, 5, 6):
         self.doTest("testTrivial",
                     afwGeom.makeIdentityTransform(),
                     order=order,
                     doPlot=False)
Beispiel #2
0
 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 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)
Beispiel #4
0
 def testTrivial(self):
     """Test fit with no distortion
     """
     self.doTest(afwGeom.makeIdentityTransform())
Beispiel #5
0
 def addBadCameraSys(dw):
     """Add an invalid camera system"""
     dw.transMap[cameraGeom.CameraSys("foo", "wrong detector")] = \
         afwGeom.makeIdentityTransform()
 def testTrivial(self):
     """Add no distortion"""
     for order in (3, 4, 5, 6):
         self.doTest("testTrivial", afwGeom.makeIdentityTransform(), order=order, doPlot=False)
 def testTrivial(self):
     """Test fit with no distortion
     """
     self.doTest(afwGeom.makeIdentityTransform())