diff --git a/code/useful_functions.py b/code/useful_functions.py index f10086e..d07000a 100644 --- a/code/useful_functions.py +++ b/code/useful_functions.py @@ -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''' \ No newline at end of file