|
lsst.afw
13.0-98-g5a654715e+2
|
Functions | |
| def | assertCoordsAlmostEqual |
| Assert that two coords represent almost the same point on the sky. More... | |
| def | assertCoordListsAlmostEqual |
| Assert that two lists of IcrsCoords represent almost the same point on the sky. More... | |
| def | assertCoordsNearlyEqual |
Variables | |
| list | __all__ = ["assertCoordsAlmostEqual", "assertCoordsNearlyEqual"] |
| 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 |
| def lsst.afw.coord.utils.assertCoordsNearlyEqual | ( | args, | |
| kwargs | |||
| ) |
| list lsst.afw.coord.utils.__all__ = ["assertCoordsAlmostEqual", "assertCoordsNearlyEqual"] |
1.8.5