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 | assertAnglesNearlyEqual |
Assert that two angles are nearly equal, ignoring wrap differences by default. More... | |
def | assertPairsNearlyEqual |
Assert that two planar pairs (e.g. More... | |
def | assertBoxesNearlyEqual |
Assert that two boxes (Box2D or Box2I) are nearly equal. More... | |
Variables | |
list | __all__ = ["assertAnglesNearlyEqual", "assertPairsNearlyEqual", "assertBoxesNearlyEqual"] |
def lsst.afw.geom.utils.assertAnglesNearlyEqual | ( | testCase, | |
ang0, | |||
ang1, | |||
maxDiff = 0.001*geomLib.arcseconds , |
|||
ignoreWrap = True , |
|||
msg = "Angles differ" |
|||
) |
Assert that two angles are nearly equal, ignoring wrap differences by default.
[in] | testCase | unittest.TestCase instance the test is part of; an object supporting one method: fail(self, msgStr) |
[in] | ang0 | angle 0 (an lsst.afw.geom.Angle) |
[in] | ang1 | angle 1 (an lsst.afw.geom.Angle) |
[in] | maxDiff | maximum difference between the two angles (an lsst.afw.geom.Angle) |
[in] | ignoreWrap | ignore wrap when comparing the angles?
|
[in] | msg | exception message prefix; details of the error are appended after ": " |
AssertionError | if the difference is greater than maxDiff |
Definition at line 36 of file utils.py.
def lsst.afw.geom.utils.assertBoxesNearlyEqual | ( | testCase, | |
box0, | |||
box1, | |||
maxDiff = 1e-7 , |
|||
msg = "Boxes differ" |
|||
) |
Assert that two boxes (Box2D or Box2I) are nearly equal.
[in] | testCase | unittest.TestCase instance the test is part of; an object supporting one method: fail(self, msgStr) |
[in] | box0 | box 0 |
[in] | box1 | box 1 |
[in] | maxDiff | maximum radial separation between the min points and max points |
[in] | msg | exception message prefix; details of the error are appended after ": " |
AssertionError | if the radial difference of the min points or max points is greater than maxDiff |
Definition at line 84 of file utils.py.
def lsst.afw.geom.utils.assertPairsNearlyEqual | ( | testCase, | |
pair0, | |||
pair1, | |||
maxDiff = 1e-7 , |
|||
msg = "Pairs differ" |
|||
) |
Assert that two planar pairs (e.g.
Point2D or Extent2D) are nearly equal
[in] | testCase | unittest.TestCase instance the test is part of; an object supporting one method: fail(self, msgStr) |
[in] | pair0 | pair 0 (a pair of floats) |
[in] | pair1 | pair 1 (a pair of floats) |
[in] | maxDiff | maximum radial separation between the two points |
[in] | msg | exception message prefix; details of the error are appended after ": " |
AssertionError | if the radial difference is greater than maxDiff |
Definition at line 59 of file utils.py.
list lsst.afw.geom.utils.__all__ = ["assertAnglesNearlyEqual", "assertPairsNearlyEqual", "assertBoxesNearlyEqual"] |