Search found 83 matches

by patoorio
Fri May 03, 2013 9:13 am
Forum: NEURON + Python
Topic: array of point processes
Replies: 5
Views: 5000

Re: array of point processes

Thank you, Ted! Indeed the lists are very straightforward in pyhton and much similar to the neuron code. I'll also keep lists in mind when doing something similar in hoc again. About your final comment, I thought of that, and my first thought would be that it should be the same. But I had a second t...
by patoorio
Thu May 02, 2013 1:17 pm
Forum: NEURON + Python
Topic: array of point processes
Replies: 5
Views: 5000

array of point processes

Hi, I'm starting to figure out how to do some things in neuron+python. However, I'm kind of new to python yet and I have a (probably) basic question: How do I translate a code like the following into python? objref GABAinp[N_in], GABApre[N_in], GABAconn[N_in] for ii= 0,N_in-1 { GABAinp[ii] = new Exp...
by patoorio
Tue Mar 19, 2013 10:48 am
Forum: Other questions
Topic: Segmentation violation
Replies: 9
Views: 3821

Re: Segmentation violation

Try the following with the 755 sources. Add to your configure CFLAGS='-g' CXXFLAGS='-g' This will cause it to build with optimization turned off. Do you mean to add it as a parameter of the ./configure command? Like in ./configure --prefix=`pwd` --with-iv=/opt/iv-18 CFLAGS='-g' CXXFLAGS='-g' ? (doe...
by patoorio
Mon Mar 18, 2013 1:28 pm
Forum: Other questions
Topic: Segmentation violation
Replies: 9
Views: 3821

Re: Segmentation violation

Hi, I'm having problems compiling the latest mercurial repository version. While solivng it, I tried the 7.3-alpha-755 (which I could compile with no problems) and it also crashes. Is there a big difference between those version? Regarding the compilation problem, it happens during make, with the fo...
by patoorio
Fri Mar 15, 2013 7:56 pm
Forum: Other questions
Topic: Segmentation violation
Replies: 9
Views: 3821

Re: Segmentation violation

hmmm...
in case you don't reproduce the error, can you give me any suggestion to debug it?

Thanks a lot for your answer
by patoorio
Fri Mar 15, 2013 1:12 pm
Forum: Other questions
Topic: Segmentation violation
Replies: 9
Views: 3821

Segmentation violation

Hi, The following code is giving me a Segmentation violation. It doesn't occur inmediately, but after some simulation time. It can be 50000, 1e5, 2e5 ms and as you can see I'm trying to do a 5e5 ms run. Before anybody asks, there are so many synaptic inputs because they will have different weights. ...
by patoorio
Fri Dec 28, 2012 8:55 am
Forum: NEURON + Python
Topic: using neuron.h.Graph() through python
Replies: 9
Views: 7190

Re: using neuron.h.Graph() through python

Hi, I want to re-float this issue because I'm having it with Ubuntu 12.04 x64, with python 2.7.3 and Neuron 7.2. It also happens with Debian (latest 64bit), python 2.6.6 and neuron 7.2. In both cases I have spyder (2.1.9 in Ubuntu; 2.1.11 in Debian) but it also happens in ipython. I have to say that...
by patoorio
Mon May 14, 2012 11:37 am
Forum: NEURON + Python
Topic: PyNEURON simplify NEURON usage from Python on Windows
Replies: 12
Views: 17701

Re: PyNEURON simplify NEURON usage from Python on Windows

OK, with 32bit python it worked at the first try.
So the problem limits to the 64-bit version.

Regards
by patoorio
Fri May 11, 2012 5:40 pm
Forum: NEURON + Python
Topic: PyNEURON simplify NEURON usage from Python on Windows
Replies: 12
Views: 17701

Re: PyNEURON simplify NEURON usage from Python on Windows

Yes, the file is located in C:\Python27\neuronhome\bin I added the path to the environment variable but it didn't work C:\>path PATH=C:\Program Files\MiKTeX 2.9\miktex\bin\x64;C:\Program (...) ;C:\Program Files \gs\gs8.64\bin;C:\Python27;C:\Python27\neuronhome\bin C:\>python Python 2.7.3 (default, A...
by patoorio
Thu May 10, 2012 12:13 pm
Forum: NEURON + Python
Topic: PyNEURON simplify NEURON usage from Python on Windows
Replies: 12
Views: 17701

Re: PyNEURON simplify NEURON usage from Python on Windows

Thanks a lot Uri for PyNEURON. I'm trying to set it up. I'm using Python 2.7, 64-bit because I don't care (yet) about compiling (I can compile with the standar 32-bit neuron, right? ... or maybe the compiled dll will not work with the 64 bit python??). Nevertheless, I have not been able to get to ch...
by patoorio
Fri Nov 25, 2011 12:40 pm
Forum: Modeling networks
Topic: NetStim.interval variable
Replies: 6
Views: 6225

Re: NetStim.interval variable

I wonder if that would work as an ARTIFICIAL_CELL with version 7.2. By the way, 7.2 has now (finally) been released officially. . No, it doesn't. And now there isn't any segmentation violation message, neuron just quits. I really don't like this algorithm for execution during a simulation--requires...
by patoorio
Fri Nov 25, 2011 6:55 am
Forum: Modeling networks
Topic: NetStim.interval variable
Replies: 6
Views: 6225

Re: NetStim.interval variable

Well, I found the solution... and a possible bug? It turns out that WATCH doesn't work in an ARTIFICIAL_CELL!! I just changed the process to a POINT_PROCESS, created a mock section to insert it and now it works like a charm! Is this normal? BTW I haven't tried with the last alpha version, I'm workin...
by patoorio
Thu Nov 24, 2011 11:09 am
Forum: Modeling networks
Topic: NetStim.interval variable
Replies: 6
Views: 6225

Re: NetStim.interval variable

I did some research and found that the WATCH command may be useful here. Now I have this: INITIAL { if (noise < 0) {noise = 0} if (noise > 1) {noise = 1} if (minRate <=0) {minRate = 0.0001} r_interval = exprand(1) last_event = 0 interval = (1000)*1/(minRate + (maxRate-minRate)*cos(2*3.14159*freq*(t-...
by patoorio
Wed Nov 23, 2011 9:44 am
Forum: Modeling networks
Topic: NetStim.interval variable
Replies: 6
Views: 6225

Re: NetStim.interval variable

Thanks a lot for telling me to do what I didn't want to do ;) But I mean it, because it turned out to be easier than I thought... until I got into trouble. I have something like this: INITIAL { r_interval = exprand(1) last_event = 0 } BREAKPOINT { if (t>start && t<start+dur) { interval = (10...
by patoorio
Tue Nov 22, 2011 2:47 pm
Forum: Modeling networks
Topic: NetStim.interval variable
Replies: 6
Views: 6225

NetStim.interval variable

Hi, I want to have a NetStim that delivers random pulses but with a variable mean interval. Specifically, I want to have sinusoid form with max=0 and min=20 (or anything resembling that). I have tried by playing a sine vector on Net1.interval, i.e. sinvec.play(&Net1.interval,1,1) But it doesn't ...