Python Kalman filtering and optimal estimation library. Implements Kalman filter, particle filter, Extended Kalman filter, Unscented Kalman filter, g-h (alpha-beta), least squares, H Infinity, smoothers, and more. Has companion book 'Kalman and Bayesian Filters in Python'.
I think we are both wrong (for what I wanted to communicate. A better example 1-2 = 359 (assuming range of [0,359]. 359 - 1 is indeed 358, and needs no modal math correction.
Corrected a doc typo. "359-1 degreees is 2" should be " 359-1 degrees is -2"