Skip to content

Commit

Permalink
✨ fix everyNth out of bound
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasvdd committed Apr 14, 2023
1 parent 7ef91e2 commit 3a66144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsdownsample/downsamplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ def _downsample(
"into account by the current implementation of the EveryNth algorithm."
)
step = max(1, len(y) / n_out)
return np.arange(start=0, stop=len(y), step=step).astype(np.uint)
return np.arange(start=0, stop=len(y) - .1, step=step).astype(np.uint)

0 comments on commit 3a66144

Please sign in to comment.