bluepyopt.ephys.stimuli

Stimuli classes

class bluepyopt.ephys.stimuli.LFPStimulus[source]

Base class for stimulus supporting LFPy cells.

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

Run stimulus

class bluepyopt.ephys.stimuli.LFPySquarePulse(step_amplitude=None, step_delay=None, step_duration=None, total_duration=None, location=None)[source]

Square pulse current clamp injection

Constructor :param step_amplitude: amplitude (nA) :type step_amplitude: float :param step_delay: delay (ms) :type step_delay: float :param step_duration: duration (ms) :type step_duration: float :param total_duration: total duration (ms) :type total_duration: float :param location: stimulus Location :type location: Location

destroy(sim=None)[source]

Destroy stimulus

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

Run stimulus

class bluepyopt.ephys.stimuli.NrnCurrentPlayStimulus(time_points=None, current_points=None, location=None)[source]

Current stimulus based on current amplitude and time series

Constructor

Parameters:
  • time_points() – time series (ms)

  • current_points() – current series of injected current amplitudes(nA)

  • location (Location) – location of stimulus

destroy(sim=None)[source]

Destroy stimulus

envelope()[source]

Stimulus envelope

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

Run stimulus

class bluepyopt.ephys.stimuli.NrnNetStimStimulus(locations=None, total_duration=None, interval=None, number=None, start=None, noise=0, weight=1)[source]

Current stimulus based on current amplitude and time series

Constructor

Parameters:
  • location – synapse point process location to connect to

  • interval – time between spikes (ms)

  • number – average number of spikes

  • start – most likely start time of first spike (ms)

  • noise – fractional randomness (0 deterministic, 1 negexp interval distribution)

destroy(sim=None)[source]

Destroy stimulus

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

Run stimulus

class bluepyopt.ephys.stimuli.NrnRampPulse(ramp_amplitude_start=None, ramp_amplitude_end=None, ramp_delay=None, ramp_duration=None, total_duration=None, location=None)[source]

Ramp current clamp injection

Constructor

Parameters:
  • ramp_amplitude_start (float) – amplitude at start of ramp (nA)

  • ramp_amplitude_start – amplitude at end of ramp (nA)

  • ramp_delay (float) – delay of ramp (ms)

  • ramp_duration (float) – duration oframp (ms)

  • total_duration (float) – total duration (ms)

  • location (Location) – stimulus Location

destroy(sim=None)[source]

Destroy stimulus

envelope()[source]

Stimulus envelope

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

Run stimulus

class bluepyopt.ephys.stimuli.NrnSquarePulse(step_amplitude=None, step_delay=None, step_duration=None, total_duration=None, location=None)[source]

Square pulse current clamp injection

Constructor

Parameters:
  • step_amplitude (float) – amplitude (nA)

  • step_delay (float) – delay (ms)

  • step_duration (float) – duration (ms)

  • total_duration (float) – total duration (ms)

  • location (Location) – stimulus Location

destroy(sim=None)[source]

Destroy stimulus

envelope()[source]

Stimulus envelope

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

Run stimulus

class bluepyopt.ephys.stimuli.Stimulus[source]

Stimulus protocol

class bluepyopt.ephys.stimuli.SynapticStimulus[source]

Synaptic stimulus protocol