bluepyemodel.ecode.comb

Comb stimulus class.

Classes

Comb(location, **kwargs)

Comb current stimulus which consists of regularly spaced short steps, aimed at generating a train of spikes.

class Comb(location, **kwargs)

Bases: BPEM_stimulus

Comb current stimulus which consists of regularly spaced short steps, aimed at generating a train of spikes.

      holdi         amp       holdi        amp       holdi           .   .   .
        :            :          :           :          :
        :       ___________     :      ___________     :     ___                  _____
        :      |           |    :     |           |    :    |                          |
        :      |           |    :     |           |    :    |        * n_steps         |
        :      |           |    :     |           |    :    |        .   .   .         |
        :      |           |    :     |           |    :    |                          |
|______________|           |__________|           |_________|                          |_____
:              :           :          :           :         :                                ^
:              :           :          :           :         :                                :
:              :           :          :           :         :                                :
 <--  delay  --><-duration->           <-duration->         :        .   .   .     totduration
                <--   inter_delay  --><--  inter_delay   -->

Constructor :param location: location of stimulus :type location: Location :param inter_delay: time between each step beginnings in ms :type inter_delay: float :param n_steps: number of steps for the stimulus :type n_steps: int :param amp: amplitude of each step(nA) :type amp: float :param delay: time at which the first current spike begins (ms) :type delay: float :param duration: duration of each step (ms) :type duration: float :param totduration: total duration of the whole stimulus (ms) :type totduration: float

generate(dt=0.1)

Return current time series

instantiate(sim=None, icell=None)

Run stimulus