avoidhexsingularity
- jwst.ami.utils.avoidhexsingularity(rotation)[source]
Avoid rotation of exact multiples of 15 degrees to avoid NaNs in hextransformee().
- Parameters:
- rotationfloat or int
Rotation in degrees
- Returns:
- rotation_adjustedfloat
Replacement value for rotation with epsilon = 1.0e-12 degrees added. Precondition before using rotationdegrees in Affine2d for hex geometries