From 62edec5a5bc6fb1ef429812ad29e244d2118ff9e Mon Sep 17 00:00:00 2001 From: "sarah.eisele" Date: Tue, 22 Oct 2024 17:05:07 +0200 Subject: [PATCH] changed return variable name spike_times to spikes do its not the same as function name --- code/useful_functions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/useful_functions.py b/code/useful_functions.py index 5fed488..e2c3938 100644 --- a/code/useful_functions.py +++ b/code/useful_functions.py @@ -120,7 +120,7 @@ def power_spectrum(stimulus): Parameters ---------- stimulus : Stimulus object or rlxnix.base.repro module - The stimulus from which the data is needed. + The stimulus for which the data is needed. Returns ------- @@ -244,13 +244,13 @@ def spike_times(stim): """ # reads out the spike times - spike_times, _ = stim.trace_data('Spikes-1') + spikes, _ = stim.trace_data('Spikes-1') # reads out the duration stim_dur = stim.duration # get the stimulus interval ti = stim.trace_info("V-1") dt = ti.sampling_interval - return spike_times, stim_dur, dt + 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?