annotated comments

This commit is contained in:
sarah.eisele 2024-10-22 17:13:13 +02:00
parent d9ff5efd5d
commit 43181c037d

View File

@ -252,12 +252,6 @@ def spike_times(stim):
dt = ti.sampling_interval
return spikes, stim_dur, dt # se changed spike_times to spikes so its not the same as name of function
'''TODO: AM-freq plot:
meaning of am peak in spectrum? why is it there how does it change with stim intensity?
make plot with AM 1/2 EODf over stim frequency (df+eodf), get amplitude of am peak and plot
amplitude over frequency of peak'''
def calculate_integral(freq, power, point, delta):
"""
Calculate the integral around a single specified point.
@ -292,8 +286,6 @@ def calculate_integral(freq, power, point, delta):
local_mean = np.mean([l_integral, r_integral])
return integral, local_mean
def valid_integrals(integral, local_mean, threshold, point):
"""
Check if the integral exceeds the threshold compared to the local mean and
@ -323,3 +315,8 @@ def valid_integrals(integral, local_mean, threshold, point):
else:
message = f"The point {point} is not valid, as its integral does not exceed the threshold."
return valid, message
'''TODO Sarah: AM-freq plot:
meaning of am peak in spectrum? why is it there how does it change with stim intensity?
make plot with AM 1/2 EODf over stim frequency (df+eodf), get amplitude of am peak and plot
amplitude over frequency of peak'''