lsst.afw  13.0-57-g42cae95
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
lsst.afw.coord.utils Namespace Reference

Functions

def assertCoordsAlmostEqual
 Assert that two coords represent almost the same point on the sky. More...
 
def assertCoordsNearlyEqual
 

Variables

list __all__ = ["assertCoordsAlmostEqual", "assertCoordsNearlyEqual"]
 

Function Documentation

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.

Warning
the coordinate systems are not compared; instead both angles are converted to ICRS and the angular separation measured.
Parameters
[in]testCaseunittest.TestCase instance the test is part of; an object supporting one method: fail(self, msgStr)
[in]coord0coord 0 (an lsst.afw.geom.Coord)
[in]coord1coord 1 (an lsst.afw.geom.Coord)
[in]maxDiffmaximum angular separation between the two coords (an lsst.afw.geom.Angle)
[in]msgexception message prefix; details of the error are appended after ": "
Exceptions
AssertionErrorif the unwrapped difference is greater than maxDiff

Definition at line 36 of file utils.py.

def lsst.afw.coord.utils.assertCoordsNearlyEqual (   args,
  kwargs 
)

Definition at line 58 of file utils.py.

Variable Documentation

list lsst.afw.coord.utils.__all__ = ["assertCoordsAlmostEqual", "assertCoordsNearlyEqual"]

Definition at line 27 of file utils.py.