changed all_coming_together

This commit is contained in:
Diana 2024-10-23 15:31:57 +02:00
parent 7ce9c39ae8
commit 0a3a8c59af

View File

@ -275,7 +275,7 @@ def power_spectrum(stimulus):
# computes firing rates
rate = firing_rate(binary, dt = dt)
# creates power spectrum
freq, power = welch(rate, fs = 1/dt, nperseg = 2**16, noverlap = 2**15)
freq, power = welch(binary, fs = 1/dt, nperseg = 2**16, noverlap = 2**15)
return freq, power
def prepare_harmonic(frequency, category, num_harmonics, color):