eFEL
eFEL copied to clipboard
Should efel return spike height for spikes that are not between stim_start and stim_end?
Hi,
I have this example trace:

stim_start = 700 stim_end = 2700
I assume the results of AP_height and time_to_first_spike will be calculated only in the time of the stimulus, but I get these results:
[{'time_to_first_spike': array([-693.2]),
'AP_height': array([ 10.27113993, -12.94247327])}]
This is the full code:
import efel
import pandas as pd
df = pd.read_pickle('temp_v.pkl')
trace1 = {'T': df['time'], 'V':df['voltage']}
trace1['stim_start'] = [700]
trace1['stim_end'] = [2700]
traces_results = efel.getFeatureValues([trace1],
['time_to_first_spike','AP_height'])
df.plot(x='time',y='voltage')
Thanks
Yes, this is 'expected' and was discussed before: https://github.com/BlueBrain/eFEL/issues/76 You can force efel to stay within the interval using: efel.setIntSetting("strict_stiminterval", True)
Great, thanks