Skip to content

Commit d53ce24

Browse files
some changes
1 parent 72448cb commit d53ce24

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/smsfusion/_smoothing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def _smooth(self):
9999
self._P = np.empty((0, *self._ains.P.shape), dtype="float64")
100100
return
101101
elif len(self._x_buf) == 1:
102-
self._x = np.asarray_chkfinite(self._x_buf).copy()
103-
self._P = np.asarray_chkfinite(self._P_buf).copy()
102+
self._x = np.asarray_chkfinite(self._x_buf)
103+
self._P = np.asarray_chkfinite(self._P_buf)
104104
elif len(self._x_buf) != len(self._x):
105105
self._x, self._P = self._backward_sweep(
106106
self._x_buf,
@@ -123,7 +123,7 @@ def x(self) -> NDArray:
123123
been updated with measurements.
124124
"""
125125
self._smooth()
126-
return np.asarray_chkfinite(self._x).copy()
126+
return self._x.copy()
127127

128128
@property
129129
def P(self) -> NDArray:
@@ -140,7 +140,7 @@ def P(self) -> NDArray:
140140
the smoother has been updated with measurements.
141141
"""
142142
self._smooth()
143-
return np.asarray_chkfinite(self._P).copy()
143+
return self._P.copy()
144144

145145
def position(self) -> NDArray:
146146
"""

0 commit comments

Comments
 (0)