|
LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
Functions | |
| def | assertCoordsNearlyEqual |
| Assert that two coords represent nearly the same point on the sky. More... | |
Variables | |
| list | __all__ = ["assertCoordsNearlyEqual"] |
| def lsst.afw.coord.utils.assertCoordsNearlyEqual | ( | testCase, | |
| coord0, | |||
| coord1, | |||
maxDiff = 0.001*afwGeom.arcseconds, |
|||
msg = "Coords differ" |
|||
| ) |
Assert that two coords represent nearly 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 |
Definition at line 33 of file utils.py.
1.8.5