single_cell_parsersim_controlSimControl

SimControl

class single_cell_parser.sim_control.SimControl(cell=None, sim_time=5, dt=0.001, T=37)

Control a current clamp simulation.

Deprecated. Simulations are set up using the high-level interface Simulator. Can still be useful for low-level control with NEURON.

Example

>>> cell = CellParser()
>>> sim = SimControl(cell=cell.get_cell())
>>> sim.go()
>>> sim.show()
Parameters:
  • cell (neuron.h.Section) – The cell to simulate.

  • simTime (float) – Simulation time (ms). Default: 5

  • dt (float) – Time step (ms). Default: 0.001

  • T (float) – Temperature (Celsius). Default: 37

Attributes:

cell

The cell to simulate.

Type:

neuron.h.Section

simTime

Simulation time [ms]. Default: 5 [ms]

Type:

float

dt

Time step [ms]. Default: 0.001 [ms]

Type:

float

T

Temperature [C]. Default

Type:

float

goAlready

Simulation status

Type:

bool

h

NEURON interface

Type:

neuron.h

Methods:

set_IClamp(delay, amp, dur)

Initializes values for current clamp.

show()

Plot the voltage trace.

set_recording()

Record the voltage trace.

go(simTime)

Run the simulation.