bluepyopt.ephys.protocols

Protocol classes

class bluepyopt.ephys.protocols.Protocol(name=None)[source]

Bases: object

Class representing a protocol (stimulus and recording).

Constructor

Parameters:name (str) – name of the feature
class bluepyopt.ephys.protocols.SequenceProtocol(name=None, protocols=None)[source]

Bases: bluepyopt.ephys.protocols.Protocol

A protocol consisting of a sequence of other protocols

Constructor

Parameters:
  • name (str) – name of this object
  • protocols (list of Protocols) – subprotocols this protocol consists of
run(cell_model, param_values, sim=None, isolate=None)[source]

Instantiate protocol

subprotocols()[source]

Return subprotocols

class bluepyopt.ephys.protocols.StepProtocol(name=None, step_stimulus=None, holding_stimulus=None, recordings=None, cvode_active=None)[source]

Bases: bluepyopt.ephys.protocols.SweepProtocol

Protocol consisting of step and holding current

Constructor

Parameters:
  • name (str) – name of this object
  • step_stimulus (list of Stimuli) – Stimulus objects used in protocol
  • recordings (list of Recordings) – Recording objects used in the protocol
  • cvode_active (bool) – whether to use variable time step
step_delay

Time stimulus starts

step_duration

Time stimulus starts

class bluepyopt.ephys.protocols.SweepProtocol(name=None, stimuli=None, recordings=None, cvode_active=None)[source]

Bases: bluepyopt.ephys.protocols.Protocol

Sweep protocol

Constructor

Parameters:
  • name (str) – name of this object
  • stimuli (list of Stimuli) – Stimulus objects used in the protocol
  • recordings (list of Recordings) – Recording objects used in the protocol
  • cvode_active (bool) – whether to use variable time step
__str__()[source]

String representation

destroy(sim=None)[source]

Destroy protocol

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

Instantiate

run(cell_model, param_values, sim=None, isolate=None)[source]

Instantiate protocol

subprotocols()[source]

Return subprotocols

total_duration

Total duration