We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91d5da7 commit 7156ce1Copy full SHA for 7156ce1
1 file changed
stumpy/floss.py
@@ -481,7 +481,7 @@ def update(self, t):
481
This is the implementation for Fast Low-cost Online Semantic
482
Segmentation (FLOSS).
483
"""
484
- self._T[:] = np.roll(self._T, -1)
+ self._T[:-1] = self._T[1:]
485
self._T[-1] = t
486
Q = self._T[-self._m :]
487
excl_zone = int(np.ceil(self._m / 4))
@@ -492,7 +492,7 @@ def update(self, t):
492
# Egress
493
# Remove the first element in the matrix profile index
494
# Shift mp up by one and replace the last row with new values
495
- self._mp[:] = np.roll(self._mp, -1, axis=0)
+ self._mp[:-1, :] = self._mp[1:, :]
496
self._mp[-1, 0] = np.inf
497
self._mp[-1, 3] = self._last_idx
498
0 commit comments