Basics

This is the basic usage of rdesigneur

moose.showfields function givis details of moose objects.


In [1]:
import moose
import rdesigneur as rd
rdes = rd.rdesigneur()
rdes.buildModel()
moose.showfields( rdes.soma )


Rdesigneur: Elec model has 1 compartments and 0 spines on 0 compartments.

[ /model[0]/elec[0]/soma[0] ]
diameter         = 0.0005
fieldIndex       = 0
Ra               = 7639437.26841
y0               = 0.0
Rm               = 424413.177334
index            = 0
numData          = 1
inject           = 0.0
initVm           = -0.065
Em               = -0.0544
y                = 0.0
numField         = 1
path             = /model[0]/elec[0]/soma[0]
dt               = 0.0
tick             = -2
z0               = 0.0
name             = soma
Cm               = 7.85398163398e-09
x0               = 0.0
Vm               = -0.06
className        = ZombieCompartment
idValue          = 469
length           = 0.0005
Im               = 1.3194689277e-08
x                = 0.0005
z                = 0.0

moose objects .valueFields gives a the list ov value fields


In [2]:
rdes.soma.valueFields


Out[2]:
('this',
 'name',
 'me',
 'parent',
 'children',
 'path',
 'className',
 'numData',
 'numField',
 'idValue',
 'index',
 'fieldIndex',
 'tick',
 'dt',
 'valueFields',
 'sourceFields',
 'destFields',
 'msgOut',
 'msgIn',
 'Vm',
 'Cm',
 'Em',
 'Im',
 'inject',
 'initVm',
 'Rm',
 'Ra',
 'diameter',
 'length',
 'x0',
 'y0',
 'z0',
 'x',
 'y',
 'z')

In [3]:
rdes.soma.Rm


Out[3]:
424413.1773342278

In [4]:
rdes.soma.diameter


Out[4]:
0.0005