rlabbe / filterpy

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'.
MIT License
3.22k stars 612 forks source link

Avoid deprecation warning #303

Open FlorianPfaff opened 5 months ago

FlorianPfaff commented 5 months ago

Hi,

I was just tired of getting the filterpy/common/helpers.py:364: DeprecationWarning: invalid escape sequence '\S' warning. I know that since a raw string is used, it should be no issue, but it keeps coming up in my logs. Hence, I changed it. I think this should be fine since it says that the \ is not an escape character for Python but part of the (LaTeX) text.