We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16d46ea commit f905e76Copy full SHA for f905e76
wordllama/algorithms/find_local_minima.pyx
@@ -79,7 +79,7 @@ cpdef tuple find_local_minima(np.ndarray[DTYPE_t, ndim=1] y, int window_size=11,
79
Returns:
80
tuple: Two numpy arrays, one for the indices of the local minima, and one for the values.
81
"""
82
- if window_size % 2 == 0 or window_size < 1:
+ if window_size % 2 == 0 or window_size < 3:
83
raise ValueError("Window size must be an odd, positive integer.")
84
if poly_order >= window_size:
85
raise ValueError("Polynomial order cannot be larger than window size.")
0 commit comments