Ejemplo n.º 1
0
def library_doc():
    print("=== Testing documents.")
    d1 = moose.getFieldDoc(('Pool', 'conc'))
    d2 = moose.getFieldDoc(('Ksolve', 'numThreads'))
    assert d1
    assert d1 != d2
    moose.doc(('Ksolve.numThreads'))
    moose.doc('Ksolve')
Ejemplo n.º 2
0
def test_doc( ):
    moose.doc( 'Compartment' )
Ejemplo n.º 3
0
def test_doc():
    print('==Testing docs')
    moose.doc('Compartment')
Ejemplo n.º 4
0
# Try it on zeus.vse.gmu.edu
import moose

help(moose)
dir(moose)
moose.le('/classes')
moose.doc(moose.Compartment)
help(moose.Compartment)

moose.le()

soma = moose.Compartment('soma')
soma = moose.element('soma')  # Returns a refence to an existant moose element.
# Doesn't create new moose element.!!!

neuron = moose.Neutral('/neuron')
soma = moose.Compartment('/neuron/soma')
dend = moose.Compartment('/neuron/dend')
data = moose.Neutral('/data')

print soma.path
print soma.name

# List elements under a moose element.
moose.le('/neuron')

# List all the attributes of a moose element.
moose.showfield('/neuron')

# Print individual attributes of moose elements to examine.
print soma.Rm, soma.Vm, soma.Cm, soma.Ra
Ejemplo n.º 5
0
def main( ):
    moose.doc( 'Compartment' )