Search found 10 matches

by davidlmorton
Wed Apr 23, 2008 7:21 pm
Forum: NEURON + Python
Topic: best way to Vector.record()?
Replies: 5
Views: 8086

The code doesn't have any syntax errors, but the behavior is not correct. Here is my code: class cell: def __init__(self): import neuron as ne import nrn as n self.ne = ne self.n = n def make_cell(self): soma = self.soma = self.n.Section() axon = self.axon = self.n.Section() dend = self.dend = self....
by davidlmorton
Tue Apr 22, 2008 11:36 pm
Forum: NEURON + Python
Topic: best way to Vector.record()?
Replies: 5
Views: 8086

How can I find out the hoc name of a section that I create with the above code?
by davidlmorton
Mon Apr 21, 2008 9:34 pm
Forum: NEURON + Python
Topic: best way to Vector.record()?
Replies: 5
Views: 8086

best way to Vector.record()?

I'm looking to run rather simple simulations in NEURON + Python. I have the python code that generates a geometric description of the cell and I just need to be able to translate that into a NEURON model cell (easy enough in hoc). I can get the model translated (I think) but recording a variable for...
by davidlmorton
Tue Apr 15, 2008 7:31 pm
Forum: NEURON + Python
Topic: trouble with "import neuron"
Replies: 4
Views: 3766

Thanks again

I guess I followed some bad advice about getting the latest svn version (or I got a developement branch instead of a release branch). Thanks again for the information. I couldn't get it to compile universal and then had troubles running it, but the .dmg for 10.4 seems to be working great. I really a...
by davidlmorton
Tue Apr 15, 2008 2:09 pm
Forum: NEURON + Python
Topic: trouble with "import neuron"
Replies: 4
Views: 3766

Tutorials have the same issue

I tried running through the tutorial and here is the result: [1:03pm]@Sakurai:~>nrniv -python NEURON -- VERSION 6.0.pygetsetcall.23 (35) 2007-05-23 by John W. Moore, Michael Hines, and Ted Carnevale Duke and Yale University -- Copyright 1984-2007 >>> from neuron import h >>> h h TopLevelHocInterpret...
by davidlmorton
Tue Apr 15, 2008 2:16 am
Forum: NEURON + Python
Topic: trouble with "import neuron"
Replies: 4
Views: 3766

trouble with "import neuron"

With your help from before, nrniv -python loads okay but now when I import neuron I have some strange behavior. After the import, the command line interpreter stops processing arrow command movement keys and anything I type gets echoed back in an odd way. Here is an example: [1:08am]@Sakurai:~>nrniv...
by davidlmorton
Sat Apr 12, 2008 11:22 pm
Forum: NEURON + Python
Topic: nrniv -python (uses wrong python version)
Replies: 6
Views: 6467

Thanks

Beautiful, thanks. Built and runs okay as far as I can tell.

David
by davidlmorton
Sat Apr 12, 2008 5:50 pm
Forum: NEURON + Python
Topic: nrniv -python (uses wrong python version)
Replies: 6
Views: 6467

Same ole

I tried the configure as you stated last and no luck. I installed python from python.org following these links. I used 2.4 because it had precompiled binaries for numpy, scipy and matplotlib which I want to use. http://www.pythonmac.org/packages/py24-fat/index.html After installing I ran: "/App...
by davidlmorton
Sat Apr 12, 2008 4:28 pm
Forum: NEURON + Python
Topic: nrniv -python (uses wrong python version)
Replies: 6
Views: 6467

I don't understand all the options

I'm not terribly familiar with these configure options and I couldn't figure out what -L</some/path> and -l<something> were supposed to be doing. I've tried a number of feeble combinations with no success. Here is what I've tried: ./configure --prefix=`pwd` --with-iv=$N/iv-17 '--with-nrnpython' 'PYL...
by davidlmorton
Fri Apr 11, 2008 11:17 pm
Forum: NEURON + Python
Topic: nrniv -python (uses wrong python version)
Replies: 6
Views: 6467

nrniv -python (uses wrong python version)

When I run nrniv -python it uses python 2.3 instead of the 2.4 where I have numpy installed. I've been working on getting neuron and python working together for a while now on mac osx 10.4 ppc. I build with: ./configure --prefix=`pwd` --with-iv=$N/iv-17 --with-nrnpython=/Library/Frameworks/Python.fr...