eFEL icon indicating copy to clipboard operation
eFEL copied to clipboard

Should efel return spike height for spikes that are not between stim_start and stim_end?

Open orena1 opened this issue 5 years ago • 2 comments

Hi, I have this example trace: image

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

temp_v.zip

orena1 avatar Apr 08 '20 12:04 orena1

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)

wvangeit avatar Apr 09 '20 09:04 wvangeit

Great, thanks

orena1 avatar Apr 15 '20 19:04 orena1