emodelrunner.stimuli

Stimulus class.

Classes

MultipleSteps(location, starts, amp, width)

Multiple steps protocol at custom times.

Pulse(location, delay, duration, amp, ...)

Train pulse.

class emodelrunner.stimuli.MultipleSteps(location, starts, amp, width)[source]

Bases: Stimulus

Multiple steps protocol at custom times.

starts

times at which each step occurs (ms)

Type

list

amp

amplitude of the stimuli (nA)

Type

float

width

width of the step stimuli (ms)

Type

float

total_duration

total duration (ms)

Type

float

location

location of stimulus

Type

Location

iclamp

clamp to inject the stimulus into the cell

Type

neuron IClamp

current_vec

current to inject to the cell

Type

neuron Vector

time_vec

times at which to play the current

Type

neuron Vector

destroy(sim=None)[source]

Destroy stimulus.

Parameters

sim (bluepyopt.ephys.NrnSimulator) – neuron simulator

instantiate(sim=None, icell=None)[source]

Instantiate stimulus.

Parameters
  • sim (bluepyopt.ephys.NrnSimulator) – neuron simulator

  • icell (neuron cell) – cell instantiation in simulator

class emodelrunner.stimuli.Pulse(location, delay, duration, amp, frequency, width)[source]

Bases: Stimulus

Train pulse.

delay

delay after which the stimuli begin (ms)

Type

float

duration

duration of the stimuli (ms)

Type

float

amp

amplitude of the stimuli (nA)

Type

float

tpulse

time between two pulse starts (ms)

Type

float

width

width of the step stimuli (ms)

Type

float

total_duration

total duration (delay + duration) (ms)

Type

float

location

location of stimulus

Type

Location

iclamp

clamp to inject the stimulus into the cell

Type

neuron IClamp

current_vec

current to inject to the cell

Type

neuron Vector

time_vec

times at which to play the current

Type

neuron Vector

destroy(sim=None)[source]

Destroy stimulus.

Parameters

sim (bluepyopt.ephys.NrnSimulator) – neuron simulator

instantiate(sim=None, icell=None)[source]

Instantiate stimulus.

Parameters
  • sim (bluepyopt.ephys.NrnSimulator) – neuron simulator

  • icell (neuron cell) – cell instantiation in simulator