Set integration method

When Python is the interpreter, what is a good
design for the interface to the basic NEURON

Moderator: hines

Post Reply

Set integration method

Post by JohnP » Thu May 19, 2011 12:25 pm

Can the global parameter 'secondorder' be used to set the integration method in Neuron+Python?

In an ipython environment where h.dt, h.celsius etc. are accessible, trying to access
gives a segmentation fault and the message
NEURON: can use pointer only to doubles secondorder
near line 0
objref hoc_obj_[2]
(although the attribute 'secondorder' does appear in the list printed by dir(h)).

Site Admin
Posts: 5590
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Re: Set integration method

Post by ted » Fri May 20, 2011 10:48 am

Have you tried the
h("any hoc statement")
syntax, e.g.
h("secondorder = 1")

Post Reply