emodelrunner.create_stimuli

Functions to create stimuli.

Functions

add_pulse(stimulus, soma_loc)

Return Pulse Stimulus.

load_pulses(soma_loc[, stim_path])

Return a list of pulse stimuli.

emodelrunner.create_stimuli.add_pulse(stimulus, soma_loc)[source]

Return Pulse Stimulus.

Parameters:
  • stimulus (dict) – contains the stimulus configuration data

  • soma_loc (bluepyopt.ephys.locations.NrnSeclistCompLocation) – location of the soma

Returns:

pulse stimulus

Return type:

Pulse

emodelrunner.create_stimuli.load_pulses(soma_loc, stim_path='protocols/stimuli.json')[source]

Return a list of pulse stimuli.

Parameters:
  • soma_loc (bluepyopt.ephys.locations.NrnSeclistCompLocation) – location of the soma

  • stim_path (str) – path to the pulse stimuli file

Raises:

NotImplementedError – if stim[“Pattern”] is not “Pulse” in simuli file

Returns:

list of Pulse stimuli