Set integration method

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

Moderator: hines

Post Reply
JohnP

Set integration method

Post by JohnP »

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
h.secondorder
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)).
ted
Site Admin
Posts: 6299
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Set integration method

Post by ted »

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