diff --git a/stumpy/floss.py b/stumpy/floss.py index c318ac7bd..5e2214c28 100644 --- a/stumpy/floss.py +++ b/stumpy/floss.py @@ -481,7 +481,7 @@ def update(self, t): This is the implementation for Fast Low-cost Online Semantic Segmentation (FLOSS). """ - self._T[:] = np.roll(self._T, -1) + self._T[:-1] = self._T[1:] self._T[-1] = t Q = self._T[-self._m :] excl_zone = int(np.ceil(self._m / 4)) @@ -492,7 +492,7 @@ def update(self, t): # Egress # Remove the first element in the matrix profile index # Shift mp up by one and replace the last row with new values - self._mp[:] = np.roll(self._mp, -1, axis=0) + self._mp[:-1, :] = self._mp[1:, :] self._mp[-1, 0] = np.inf self._mp[-1, 3] = self._last_idx