emodel_generalisation.model.ecodes

Ecode module.

Classes

APWaveform(location, **kwargs)

APWaveform current stimulus

BAC(location, **kwargs)

BAC ecode.

BPEM_stimulus(location)

Abstract current stimulus

Comb(location, **kwargs)

Comb current stimulus

DendriticStep(location, **kwargs)

Step protocol on a dendrite.

IDrest(location, **kwargs)

IDrest current stimulus

IV(location, **kwargs)

IV current stimulus

Ramp(location, **kwargs)

Ramp current stimulus

Synaptic(location, **kwargs)

Ecode to model a synapse with EPSP-like shape.

class emodel_generalisation.model.ecodes.APWaveform(location, **kwargs)

Bases: IDrest

APWaveform current stimulus

class emodel_generalisation.model.ecodes.BAC(location, **kwargs)

Bases: IDrest

BAC ecode.

BAC is a combination of a bAP and a synaptic input to generate Ca dendritic spikes.

instantiate(sim=None, icell=None)

Run stimulus

class emodel_generalisation.model.ecodes.BPEM_stimulus(location)

Bases: Stimulus

Abstract current stimulus

destroy(sim=None)

Destroy stimulus

generate(dt=0.1)

Return current time series

instantiate(sim=None, icell=None)

Run stimulus

class emodel_generalisation.model.ecodes.Comb(location, **kwargs)

Bases: BPEM_stimulus

Comb current stimulus

      holdi         amp       holdi        amp       holdi           .   .   .
        :            :          :           :          :
        :       ___________     :      ___________     :     ___                  _____
        :      |           |    :     |           |    :    |                          |
        :      |           |    :     |           |    :    |        * n_steps         |
        :      |           |    :     |           |    :    |        .   .   .         |
        :      |           |    :     |           |    :    |                          |
|______________|           |__________|           |_________|                          |_____
:              :           :          :           :         :                                ^
:              :           :          :           :         :                                :
:              :           :          :           :         :                                :
 <--  delay  --><-duration->           <-duration->         :        .   .   .     totduration
                <--   inter_delay  --><--  inter_delay   -->
generate(dt=0.1)

Return current time series

instantiate(sim=None, icell=None)

Run stimulus

class emodel_generalisation.model.ecodes.DendriticStep(location, **kwargs)

Bases: IDrest

Step protocol on a dendrite.

instantiate(sim=None, icell=None)

Force to have holding current at 0.

class emodel_generalisation.model.ecodes.IDrest(location, **kwargs)

Bases: BPEM_stimulus

IDrest current stimulus

      holdi               holdi+amp                holdi
        :                     :                      :
        :                     :                      :
        :           ______________________           :
        :          |                      |          :
        :          |                      |          :
        :          |                      |          :
        :          |                      |          :
|__________________|                      |______________________
^                  ^                      ^                      ^
:                  :                      :                      :
:                  :                      :                      :
t=0                delay                  delay+duration         totduration
generate(dt=0.1)

Return current time series

instantiate(sim=None, icell=None)

Run stimulus

class emodel_generalisation.model.ecodes.IV(location, **kwargs)

Bases: IDrest

IV current stimulus

class emodel_generalisation.model.ecodes.Ramp(location, **kwargs)

Bases: BPEM_stimulus

Ramp current stimulus

    holdi          holdi+amp       holdi
      :                :             :
      :                :             :
      :               /|             :
      :              / |             :
      :             /  |             :
      :            /   |             :
      :           /    |             :
      :          /     |             :
      :         /      |             :
      :        /       |             :
      :       /        |             :
|___________ /         |__________________________
^           ^          ^                          ^
:           :          :                          :
:           :          :                          :
t=0         delay      delay+duration             totduration
generate(dt=0.1)

Return current time series

instantiate(sim=None, icell=None)

Run stimulus

class emodel_generalisation.model.ecodes.Synaptic(location, **kwargs)

Bases: DendriticStep

Ecode to model a synapse with EPSP-like shape.

A synthetic EPSP shape is defined by the difference of two exponentials, one with a rise time (syn_rise) constant, the other with a decay (syn_decay) time constants. It is normalized such that the maximum value is parametrized by syn_amp.

instantiate(sim=None, icell=None)

Run stimulus