def main(): utils.parser nml.loadNeuroML_L123('./two_cells_nml_1.8/two_cells.nml') #mumbl.loadMumbl("./two_cells_nml_1.8/mumbl.xml") table1 = utils.recordTarget('/tableA', '/cells/purkinjeGroup_0/Dend_37_41', 'vm') table2 = utils.recordTarget('/tableB', '/cells/granuleGroup_0/Soma_0', 'vm') moose.setClock(0, 5e-6) moose.useClock(0, '/##', 'process') moose.useClock(0, '/##', 'init') moose.reinit() utils.run(0.1) graphviz.writeGraphviz(__file__+".dot", ignore='/library')
def main(): utils.parser p = os.path.join(modeldir, "two_cells_nml_1.8/two_cells.nml") nml.loadNeuroML_L123(p) # mumbl.loadMumbl("./two_cells_nml_1.8/mumbl.xml") table1 = utils.recordTarget("/tableA", "/cells/purkinjeGroup_0/Dend_37_41", "vm") table2 = utils.recordTarget("/tableB", "/cells/granuleGroup_0/Soma_0", "vm") moose.setClock(0, 5e-6) moose.useClock(0, "/##", "process") moose.useClock(0, "/##", "init") moose.reinit() utils.run(0.1, verify=True) graphviz.writeGraphviz("test_mumble.dot", ignore="/library") utils.plotRecords({"Dend 37": table1, "Soma 0": table2}, outfile="%s.png" % sys.argv[0], subplot=True)
def main( args ): # d is depth of cable. d = args['tree_depth'] assert d > 0, "Cable depth can not be nagative" binCable = BinaryCable( depth = d ) binCable.buildCable( args ) table0 = binCable.recordAt( depth = 0, index = 0 ) table1 = binCable.recordAt( depth = d-1, index = -1) print("[STIM] Simulating a cable with depth {}".format(d)) binCable.simulate( simTime = args['run_time'], simDt = args['dt'] ) #utils.plotTables( [ table0, table1 ] # , file = args['output'] # , xscale = args['dt'] # ) graphviz.writeGraphviz(__file__+".dot") #, compartment_shape='point')
def main(args): # d is depth of cable. d = args['tree_depth'] assert d > 0, "Cable depth can not be nagative" binCable = BinaryCable(depth=d) binCable.buildCable(args) table0 = binCable.recordAt(depth=0, index=0) table1 = binCable.recordAt(depth=d - 1, index=-1) print("[STIM] Simulating a cable with depth {}".format(d)) binCable.simulate(simTime=args['run_time'], simDt=args['dt']) #utils.plotTables( [ table0, table1 ] # , file = args['output'] # , xscale = args['dt'] # ) graphviz.writeGraphviz(__file__ + ".dot") #, compartment_shape='point')
def main(): utils.parser nml.loadNeuroML_L123('./two_cells_nml_1.8/two_cells.nml') #mumbl.loadMumbl("./two_cells_nml_1.8/mumbl.xml") table1 = utils.recordTarget('/tableA', '/cells/purkinjeGroup_0/Dend_37_41', 'vm') table2 = utils.recordTarget('/tableB', '/cells/granuleGroup_0/Soma_0', 'vm') moose.setClock(0, 5e-6) moose.useClock(0, '/##', 'process') moose.useClock(0, '/##', 'init') moose.reinit() utils.run(0.1, verify=True) graphviz.writeGraphviz(__file__ + ".dot", ignore='/library') utils.plotTables([table1, table2])
def main(): utils.parser nml.loadNeuroML_L123('./two_cells_nml_1.8/two_cells.nml') #mumbl.loadMumbl("./two_cells_nml_1.8/mumbl.xml") table1 = utils.recordTarget('/tableA', '/cells/purkinjeGroup_0/Dend_37_41', 'vm') table2 = utils.recordTarget('/tableB', '/cells/granuleGroup_0/Soma_0', 'vm') moose.setClock(0, 5e-6) moose.useClock(0, '/##', 'process') moose.useClock(0, '/##', 'init') moose.reinit() utils.run(0.1, verify=True) graphviz.writeGraphviz(__file__+".dot", ignore='/library') utils.plotRecords({ 'Dend 37' : table1, 'Soma 0' : table2 } , outfile = '%s.png' % sys.argv[0] , subplot = True )
def main(): utils.parser p = os.path.join(modeldir, 'two_cells_nml_1.8/two_cells.nml') nml.loadNeuroML_L123(p) #mumbl.loadMumbl("./two_cells_nml_1.8/mumbl.xml") table1 = utils.recordTarget('/tableA', '/cells/purkinjeGroup_0/Dend_37_41', 'vm') table2 = utils.recordTarget('/tableB', '/cells/granuleGroup_0/Soma_0', 'vm') moose.setClock(0, 5e-6) moose.useClock(0, '/##', 'process') moose.useClock(0, '/##', 'init') moose.reinit() utils.run(0.1, verify=True) graphviz.writeGraphviz('test_mumble.dot', ignore='/library') utils.plotRecords({ 'Dend 37': table1, 'Soma 0': table2 }, outfile='%s.png' % sys.argv[0], subplot=True)