Page 1 of 1

access GLOBAL from Python

Posted: Fri Jun 25, 2010 3:39 am
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?

Re: access GLOBAL from Python

Posted: Fri Jun 25, 2010 3:42 am
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>