Skip to content

Instantly share code, notes, and snippets.

@nihalpasham
Last active April 14, 2020 03:48
Show Gist options
  • Save nihalpasham/48a8074a8cc0b9ccbd1ce04ba1b090e4 to your computer and use it in GitHub Desktop.
Save nihalpasham/48a8074a8cc0b9ccbd1ce04ba1b090e4 to your computer and use it in GitHub Desktop.
code_tracking
i = 3844
peaks = []
while True:
v = max(normalized_correlation_magnitude_buffer[i-200 : i+200])
s, = np.where(np.isclose(normalized_correlation_magnitude_buffer, v, rtol = 1e-09))
print('Index : {0}, Corr : {1}'.format(s, v))
peaks.append([s[0],v])
i = s[0] + 2032
if i > data.shape[0]-2*2032:
print('done')
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment