Use last 16 steps in period detection, not first 16..
parent
0484e97382
commit
8947932289
|
@ -371,8 +371,8 @@ class Viz(Struct):
|
||||||
# the source data.
|
# the source data.
|
||||||
if self._index_step is None:
|
if self._index_step is None:
|
||||||
|
|
||||||
index = self.shm.array[self.index_field]
|
index: np.ndarray = self.shm.array[self.index_field]
|
||||||
isample = index[:16]
|
isample: np.ndarray = index[-16:]
|
||||||
|
|
||||||
mxdiff: None | float = None
|
mxdiff: None | float = None
|
||||||
for step in np.diff(isample):
|
for step in np.diff(isample):
|
||||||
|
|
Loading…
Reference in New Issue