changed return variable name spike_times to spikes do its not the same as function name

This commit is contained in:
sarah.eisele 2024-10-22 17:05:07 +02:00
parent 9e766e8b3f
commit 62edec5a5b

View File

@ -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?