bluepyopt.ephys.stimuli

Stimuli classes

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

Bases: bluepyopt.ephys.stimuli.Stimulus

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

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]

Bases: bluepyopt.ephys.stimuli.Stimulus

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 distrubtion)
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]

Bases: bluepyopt.ephys.stimuli.Stimulus

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

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]

Bases: bluepyopt.ephys.stimuli.Stimulus

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

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

Run stimulus

class bluepyopt.ephys.stimuli.Stimulus[source]

Bases: object

Stimulus protocol