assert_angles_almost_equal¶
-
lsst.ts.utils.assert_angles_almost_equal(angle1: Union[
astropy.coordinates.Angle, float], angle2: Union[astropy.coordinates.Angle, float], max_diff: Union[astropy.coordinates.Angle, float] = 1e-05) None¶ 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
- angle1
- Raises
- AssertionError
If
angle_diffof angle1 and angle2 exceeds max_diff.