You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function dec2hp includes tests for carry of seconds see angles.py:1040-1043. However, when rounding, the seconds carries into the minutes but the minutes aren't carried into the degrees. This can lead to invalid HP values (e.g. dec2hp(1 - 1e-13) returns 0.6 as in 0°60').
Separately, the __round__ dunders for DMSAngle and DDMAngle also include incorrect carry of rounded minutes / seconds. This also leads to invalid values (e.g. round(DMSAngle(0,59,59.9999),2) returns {DMSAngle: +0d 59m 60.0s)
Activity