|
lsst.afw
14.0-17-gfc02bf727
|
Functions | |
| def | assertCoordsAlmostEqual (testCase, coord0, coord1, maxDiff=0.001 *afwGeom.arcseconds, msg="Coords differ") |
| Assert that two coords represent almost the same point on the sky. More... | |
| def | assertCoordListsAlmostEqual (testCase, coordlist0, coordlist1, maxDiff=0.001 *afwGeom.arcseconds, msg=None) |
| Assert that two lists of IcrsCoords represent almost the same point on the sky. More... | |
| def | assertCoordsNearlyEqual (args, kwargs) |
| def lsst.afw.coord.utils.assertCoordListsAlmostEqual | ( | testCase, | |
| coordlist0, | |||
| coordlist1, | |||
maxDiff = 0.001*afwGeom.arcseconds, |
|||
msg = None |
|||
| ) |
Assert that two lists of IcrsCoords represent almost the same point on the sky.
| [in] | testCase | unittest.TestCase instance the test is part of; an object supporting one method: fail(self, msgStr) |
| [in] | coordlist0 | list of IcrsCoords 0 |
| [in] | coordlist1 | list of IcrsCoords 1 |
| [in] | maxDiff | maximum angular separation, an lsst.afw.geom.Angle |
| [in] | msg | exception message prefix; details of the error are appended after ": " |
| def lsst.afw.coord.utils.assertCoordsAlmostEqual | ( | testCase, | |
| coord0, | |||
| coord1, | |||
maxDiff = 0.001*afwGeom.arcseconds, |
|||
msg = "Coords differ" |
|||
| ) |
Assert that two coords represent almost the same point on the sky.
| [in] | testCase | unittest.TestCase instance the test is part of; an object supporting one method: fail(self, msgStr) |
| [in] | coord0 | coord 0 (an lsst.afw.geom.Coord) |
| [in] | coord1 | coord 1 (an lsst.afw.geom.Coord) |
| [in] | maxDiff | maximum angular separation between the two coords (an lsst.afw.geom.Angle) |
| [in] | msg | exception message prefix; details of the error are appended after ": " |
| AssertionError | if the unwrapped difference is greater than maxDiff |
1.8.13