Create a single passive compartment model, current is injected as the simulation runs. This script displays the membrane potential of the soma as it charges and discharges.

In [1]:
import moose
import rdesigneur as rd
%matplotlib inline

rdes = rd.rdesigneur(
    stimList = [['soma', '1', '.', 'inject', '(t>0.1 && t<0.2) * 2e-8' ]],
    plotList = [['soma', '1', '.', 'Vm', 'Soma membrane potential']]
)
rdes.buildModel()
moose.reinit()
moose.start( 0.3 )

rdes.display()
Rdesigneur: Elec model has 1 compartments and 0 spines on 0 compartments.