Skip to content

Commit c56aef1

Browse files
bugfix class variables
1 parent dd677ea commit c56aef1

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/smsfusion/_smoothing.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@ class FixedIntervalSmoother:
3434
filtering with MATLAB exercises", 4th ed. Wiley, pp. 208-212, 2012.
3535
"""
3636

37-
_x_buf = [] # state estimates (no smoothing)
38-
_P_buf = [] # error covariance estimates (no smoothing)
39-
_dx_buf = [] # error-state estimates (no smoothing)
40-
_P_prior_buf = [] # a priori error covariance estimates (no smoothing)
41-
_phi_buf = [] # state transition matrix
42-
_x = np.array([]) # smoothed state estimates
43-
_P = np.array([]) # smoothed erro covariance estimate
44-
4537
def __init__(self, ains: AidedINS | AHRS | VRU, cov_smoothing: bool = True) -> None:
4638
warn(
4739
"FixedIntervalSmoother is experimental and may change or be removed in the future.",
@@ -50,6 +42,14 @@ def __init__(self, ains: AidedINS | AHRS | VRU, cov_smoothing: bool = True) -> N
5042
self._ains = ains
5143
self._cov_smoothing = cov_smoothing
5244

45+
self._x_buf = [] # state estimates (no smoothing)
46+
self._P_buf = [] # error covariance estimates (no smoothing)
47+
self._dx_buf = [] # error-state estimates (no smoothing)
48+
self._P_prior_buf = [] # a priori error covariance estimates (no smoothing)
49+
self._phi_buf = [] # state transition matrix
50+
self._x = np.array([]) # smoothed state estimates
51+
self._P = np.array([]) # smoothed erro covariance estimate
52+
5353
@property
5454
def ains(self) -> AidedINS | AHRS | VRU:
5555
"""

0 commit comments

Comments
 (0)