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')
def test_doc( ): moose.doc( 'Compartment' )
def test_doc(): print('==Testing docs') moose.doc('Compartment')
# 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
def main( ): moose.doc( 'Compartment' )