bluepyemodel.ecode.spikerec

SpikeRec stimulus class

Classes

SpikeRecMultiSpikes(location, **kwargs)

SpikeRecMultiSpikes current stimulus

class SpikeRecMultiSpikes(location, **kwargs)

Bases: BPEM_stimulus

SpikeRecMultiSpikes current stimulus

      holdi        holdi+amp        holdi       holdi+amp            .   .   .
        :               :             :             :
        :       _________________     :      _________________                      _________________
        :      |                 |    :     |                 |                    |                 |
        :      |                 |    :     |                 |     * n_spikes     |                 |
        :      |                 |    :     |                 |     .   .   .      |                 |
        :      |                 |    :     |                 |                    |                 |
|______________|                 |__________|                 |__                __|                 |___
:              :                 :          :                 :                                          ^
:              :                 :          :                 :                                          :
:              :                 :          :                 :                                          :
 <--  delay  --><-spike_duration-><- delta -><-spike_duration->     .   .   .                  totduration

Constructor

Attention! This is the class for the new SpikeRec containing multispikes. In order to use it, you should use SpikeRecMultiSpikes as key in your protocol file. If you use SpikeRec, it will use the old SpikeRec containing one spike, which is using the IDRest class. Beware that the **kwargs for the two types (multispikes/1spike) of SpikeRec are different.

Parameters:
  • location (Location) – location of stimulus

  • **kwargs – See below

Keyword Arguments:
  • amp (float) – amplitude of each spike(nA)

  • thresh_perc (float) – amplitude of each spike relative to the threshold current (%)

  • holding_current (float) – amplitude of the holding current (nA)

  • delay (float) – time at which the first current spike begins (ms)

  • n_spikes (int) – number of spikes for the stimulus

  • spike_duration (float) – duration of each spike (ms)

  • delta (float) – time without stimulus between each spike (ms)

  • totduration (float) – total duration of the whole stimulus (ms)

generate(dt=0.1)

Return current time series

instantiate(sim=None, icell=None)

Run stimulus