assertAnglesAlmostEqual¶
-
lsst.ts.salobj.assertAnglesAlmostEqual(angle1, angle2, max_diff=1e-05)¶ Raise AssertionError if angle1 and angle2 are too different, ignoring wrap.
Parameters: - angle1 :
astropy.coordinates.Angleorfloat Angle 1; if a float then in degrees
- angle2 :
astropy.coordinates.Angleorfloat Angle 2; if a float then in degrees
- max_diff :
astropy.coordinates.Angleorfloat Maximum allowed difference; if a float then in degrees
Raises: - AssertionError
If
angle_diffof angle1 and angle2 exceeds max_diff.
- angle1 :