type="model_container") my_model_container.Load('tests/cells/singlep.ndf') # # Must create solver. # my_heccer = scheduler.CreateSolver('My solver', 'heccer') # Sets the segment of the model to run from my_heccer.SetModelName('/singlep') # set the timestep for the entire scheduler (solvers, inputs and outputs) my_heccer.SetTimeStep(1e-05) my_output = scheduler.CreateOutput('output_object', 'live_output') my_output.AddOutput('/singlep/segments/soma', 'Vm') my_output.SetAppend(True) my_output.SetOrder('column') scheduler.Run(steps=5) output1 = my_output.GetData() for i in range(0, len(output1[0])): print "Timestep: %f, Vm: %f" % (output1[0][i], output1[1][i])
# Sets the segment of the model to run from my_heccer.SetModelName('/singlep') # set the timestep for the entire scheduler (solvers, inputs and outputs) my_heccer.SetTimeStep(1e-05) # # Create a perfectclamp object for current holding. # my_input = scheduler.CreateInput('purkinje cell perfect clamp', 'perfectclamp') my_input.AddInput('/singlep/segments/soma', 'Vm') my_input.SetCommand(-0.06) # # Create Outputs # my_output = scheduler.CreateOutput('My output object', 'double_2_ascii') my_output.SetFilename('/tmp/output') my_output.AddOutput('/singlep/segments/soma', 'Vm') my_output.SetMode('steps') scheduler.Run(steps=30, finish=True) print "Done!"
# # Must create solver. # my_heccer = scheduler.CreateSolver('My solver', 'heccer') # Sets the segment of the model to run from my_heccer.SetModelName('/purk_test') # set the timestep for the entire scheduler (solvers, inputs and outputs) my_heccer.SetTimeStep(2e-05) # # Create Outputs # my_output = scheduler.CreateOutput('My output object', 'line') my_output.AddOutput('/purk_test/segments/soma', 'Vm') my_output.AddOutput('/purk_test/segments/soma/ca_pool', 'Ca') my_output.AddOutput('/purk_test/segments/soma/km', 'state_n') my_output.AddOutput('/purk_test/segments/soma/kdr', 'state_m') my_output.AddOutput('/purk_test/segments/soma/kdr', 'state_h') my_output.AddOutput('/purk_test/segments/soma/ka', 'state_m') my_output.AddOutput('/purk_test/segments/soma/ka', 'state_h') my_output.AddOutput('/purk_test/segments/soma/kh', 'state_m') my_output.AddOutput('/purk_test/segments/soma/kh', 'state_h') my_output.AddOutput('/purk_test/segments/soma/nap', 'state_n') my_output.AddOutput('/purk_test/segments/soma/naf', 'state_m') my_output.AddOutput('/purk_test/segments/soma/naf', 'state_h') my_output.AddOutput('/purk_test/segments/soma/cat/cat_gate_activation', 'state_m') my_output.AddOutput('/purk_test/segments/soma/cat/cat_gate_activation', 'state_h')