Skip to content

Commit ae60a28

Browse files
authored
✨ fix everyNth out of bound (#43)
* ✨ fix everyNth out of bound * 🙈 formatting
1 parent 7ef91e2 commit ae60a28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tsdownsample/downsamplers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ def _downsample(
6363
"into account by the current implementation of the EveryNth algorithm."
6464
)
6565
step = max(1, len(y) / n_out)
66-
return np.arange(start=0, stop=len(y), step=step).astype(np.uint)
66+
return np.arange(start=0, stop=len(y) - 0.1, step=step).astype(np.uint)

0 commit comments

Comments
 (0)