removes unused lines

This commit is contained in:
Pamela Hathway 2025-09-23 18:15:56 +03:00
parent 952f8b97a5
commit 6c2bd5b577

View file

@ -1,6 +1,3 @@
import numpy as np
def find_maxima(x): def find_maxima(x):
"""Find local maxima of x. """Find local maxima of x.
@ -43,8 +40,6 @@ def check_first_element(x, maxima):
def check_last_element(x, maxima): def check_last_element(x, maxima):
if x[-1] > x[-2]: if x[-1] > x[-2]:
maxima.append(len(x) - 1) maxima.append(len(x) - 1)
print("hello")
np.array([])
return maxima return maxima