single_cell_parser ❭ sim_control ❭ SimControl
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:¶
- Methods:¶
set_IClamp(delay, amp, dur)Initializes values for current clamp.
show()Plot the voltage trace.
Record the voltage trace.
go(simTime)Run the simulation.