Search found 6 matches

by Ruben Moor
Wed Dec 16, 2009 5:12 am
Forum: NEURON + Python
Topic: pythonic parallel context
Replies: 2
Views: 2881

Re: pythonic parallel context

Hello, unfortunately upkstr() did not work for me filename = pc.upkstr() fails with "upkstr not enough arguments". I worked around that with h('''strdef str1, str2 str1 = po.pc.upkstr(str1) str2 = po.pc.upkstr(str2) ''') filename = h.str1 features = h.str2 where I used 'submit' with a hoc-...
by Ruben Moor
Mon Dec 14, 2009 12:55 pm
Forum: NEURON + Python
Topic: pythonic parallel context
Replies: 2
Views: 2881

pythonic parallel context

Hello, I am using the bulletin board style system with embedded python and was very excited when I noticed the recent changes. Now I have found some things not yet working as I expected (disregarding mistakes I may have made): while pc.working(): metypefilename = pc.upkpyobj() features = pc.upkobj()...
by Ruben Moor
Fri Nov 20, 2009 5:27 am
Forum: NEURON + Python
Topic: Bulletin Board Style
Replies: 11
Views: 11094

Re: Bulletin Board Style

Thanks a lot for your great efforts!

Your example is very clarifying and it finally works on my machine.
by Ruben Moor
Thu Nov 19, 2009 8:09 am
Forum: NEURON + Python
Topic: Bulletin Board Style
Replies: 11
Views: 11094

Re: Bulletin Board Style

Thanks for the help. Now I and up with an entirely different problem. I have not found anything on this here. It is about my stub function definition in python: h('func task() { return $1 * $1 }') works fine. Unfortunately the result of my jobs is a vector, which needs to be posted. So I end up with...
by Ruben Moor
Wed Nov 18, 2009 7:21 am
Forum: NEURON + Python
Topic: Bulletin Board Style
Replies: 11
Views: 11094

Re: Bulletin Board Style

Code: Select all

pc.submit("nrnpython(function)")
yields the following error output:
nrnpython(function) not a function in NULLobject
by Ruben Moor
Tue Nov 17, 2009 9:10 am
Forum: NEURON + Python
Topic: Bulletin Board Style
Replies: 11
Views: 11094

Bulletin Board Style

Hello, I want to use the Bulletin Board Style system of ParallelContext of Neuron with embedded Python. However my function definition: def function(): ... is not recognized by the submit command: pc.submit("function") How can I expose my python defined function to the hoc-namespace? Runni...