bluepyefe.ecode.sAHP

sAHP eCode

Classes

SAHP(config_data, reader_data[, ...])

sAHP current stimulus

class SAHP(config_data, reader_data, protocol_name='sAHP', efel_settings=None)[source]

Bases: Recording

sAHP current stimulus

The long step (here amp) is usually fixed at 40% of rheobase, and the short step (here amp2) can usually vary from 150% to 300% of rheobase.

   hypamp        hypamp+amp       hypamp+amp2        hypamp+amp           hypamp
     :                :                :                 :                   :
     :                :          ______________          :                   :
     :                :         |              |         :                   :
     :                :         |              |         :                   :
     :      ____________________                ____________________         :
     :     |                    ^              ^                    |        :
     :     |                    :              :                    |        :
|__________|                    :              :                    |__________________
^          ^                    :              :                    ^                  ^
:          :                    :              :                    :                  :
:          :                    :              :                    :                  :
t=0        ton                  tmid           tmid2                toff               tend

Constructor

Parameters:
  • config_data (dict) – metadata for the recording considered informed by the user.

  • reader_data (dict) – metadata for the recording considered returned by the recording reader.

  • protocol_name (str) – name of the protocol of the present recording.

compute_relative_amp(amp_threshold)[source]

Divide all the amplitude in the stimuli by the spiking amplitude

generate()[source]

Generate the current array from the parameters of the ecode

get_stimulus_parameters()[source]

Returns the eCode parameters

in_target(target, tolerance, absolute_amplitude=False)[source]

Returns a boolean. True if the amplitude of the eCode is close to target and False otherwise.

interpret(t, current, config_data, reader_data)[source]

Analyse a current with a step and extract from it the parameters needed to reconstruct the array