lsst.afw  14.0
 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 assertCoordListsAlmostEqual
 Assert that two lists of IcrsCoords represent almost the same point on the sky. More...
 
def assertCoordsNearlyEqual
 

Variables

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

Function Documentation

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.

Warning
the coordinate systems are not compared; instead both sets of 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]coordlist0list of IcrsCoords 0
[in]coordlist1list of IcrsCoords 1
[in]maxDiffmaximum angular separation, an lsst.afw.geom.Angle
[in]msgexception message prefix; details of the error are appended after ": "

Definition at line 60 of file utils.py.

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 38 of file utils.py.

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

Definition at line 85 of file utils.py.

Variable Documentation

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

Definition at line 27 of file utils.py.