access GLOBAL from Python

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

Moderator: hines

Post Reply
btorb
Posts: 30
Joined: Fri Oct 21, 2005 8:14 am

access GLOBAL from Python

Post by btorb »

Hi, A quick question: how do you access a NMODL GLOBAL parameter in python.

In hoc (and h("")) you can do:
<global_name>_<process_name>=<value>
for instance gnabar_hh = 0.12

What is the pythonic way of doing this?
btorb
Posts: 30
Joined: Fri Oct 21, 2005 8:14 am

Re: access GLOBAL from Python

Post by btorb »

tried some things for the last hour, wrote a post a minute ago and now i found the answer:

h.<globalname>_<mechname> = <value>
Post Reply