Search found 12 matches

by matiasm
Mon Jun 27, 2011 7:21 pm
Forum: Other questions
Topic: Input Impedance and CVODE
Replies: 2
Views: 2239

Re: Input Impedance and CVODE

Excellent thank you very much. I will try edit my mod files and see.
Thanks

Matias
by matiasm
Mon Jun 27, 2011 3:38 am
Forum: Other questions
Topic: Input Impedance and CVODE
Replies: 2
Views: 2239

Input Impedance and CVODE

Hi, I have been trying to get the .compute(0.5) working to do some impedance measurements. I have read: https://www.neuron.yale.edu/phpBB2/viewtopic.php?t=771 and there is a line saying: sets origin for impedance calculations zz.compute(FREQ, 1) // takes the impedance contributions of // gating stat...
by matiasm
Wed Feb 09, 2011 12:50 am
Forum: Parallel NEURON
Topic: parallel and triple loop error
Replies: 8
Views: 6927

Re: parallel and triple loop error

Never mind, I have discovered my error with the last post, inside the 3 loops I also had a

while (pc.working){}

This has now been correctly placed outside the loop and it seems to be working.

Matias
by matiasm
Wed Feb 09, 2011 12:44 am
Forum: Parallel NEURON
Topic: parallel and triple loop error
Replies: 8
Views: 6927

Re: parallel and triple loop error

I think I understand what you mean. In the case of parallelising to individual current stimulations, would the format of this be as such: pc.runworker() for ii=0,10{ for jj=0, 10{ for kk=0, 10{ /////master finds valid point//// for xx=0, 20{ ///for this point master submits 20 jobs to the bulletin b...
by matiasm
Tue Feb 08, 2011 7:43 pm
Forum: Parallel NEURON
Topic: parallel and triple loop error
Replies: 8
Views: 6927

Re: parallel and triple loop error

Thanks for your reply Ted. I had thoroughly read through the manual you mention, but I am still not sure how to get my program to work with only one pc.runworker call. Just a quick description of what my program does: It loops through 10 values of 3 conductances (all up 1000 combinations) and at eac...
by matiasm
Wed Feb 02, 2011 10:46 pm
Forum: Parallel NEURON
Topic: parallel and triple loop error
Replies: 8
Views: 6927

Re: parallel and triple loop error

After a long process of trial and error I have managed to get this working. For people with similar problems here is how I have done it. Also sorry for long posts with code, but I didnt realise how to post code correctly before. load_file("nrngui.hoc") load_file("mosinit.hoc") ob...
by matiasm
Wed Feb 02, 2011 1:37 am
Forum: Parallel NEURON
Topic: parallel and triple loop error
Replies: 8
Views: 6927

Re: parallel and triple loop error

I have now tried a different approach but still no luck. I thought that since running the pc.submit from inside the 3 loops doesn't work, i could put it into a function that is called upon from inside the loop. Here is a simplified version of the code: load_file("nrngui.hoc") load_file(&qu...
by matiasm
Tue Feb 01, 2011 9:36 pm
Forum: Parallel NEURON
Topic: parallel and triple loop error
Replies: 8
Views: 6927

parallel and triple loop error

Hi, I am trying to run some work on a parallel system and after 2 days I have come to a very annoying roadblock. I am trying to run a ParallelContext() from inside a triple loop. It seems to work fine for the first loop then the system just hangs. I am not sure what is wrong. I have simplified the c...
by matiasm
Tue Feb 01, 2011 9:27 pm
Forum: Other questions
Topic: Multiple file directories in Neuron
Replies: 7
Views: 5104

Re: Multiple file directories in Neuron

Dear Ted, Thanks for the reply. I have it working on windows and mac at the moment, and also on parallel. Seems like it is working across platforms. You are right about the file/folder names. I have changed my approach to numbering the folders 00,001,002 etc. Each folder contains 20 files output by ...
by matiasm
Mon Jan 31, 2011 7:02 pm
Forum: Other questions
Topic: Multiple file directories in Neuron
Replies: 7
Views: 5104

Re: Multiple file directories in Neuron

Ok I have found a round about way to solve this. I'm not sure if this is the most efficient way but it works: sprint(folder, "%g%g%g", gbar_lva, ghdbar_hd, gbar_nap) sprint(string, "system(\"mkdir data/%s\")", folder) chdir("getcwd()") execute(string) sprint(f...
by matiasm
Mon Jan 31, 2011 4:02 pm
Forum: Other questions
Topic: Multiple file directories in Neuron
Replies: 7
Views: 5104

Re: Multiple file directories in Neuron

great thanks for the reply!! I now have this code added. chdir("getcwd()") sprint(folder, "folder1") system("mkdir %s", folder) sprint(fname, "%s/%g.dat", folder, ampli2) file_out.wopen(fname) Only thing is that the system prints out %s instead of the string I...
by matiasm
Sun Jan 30, 2011 7:47 pm
Forum: Other questions
Topic: Multiple file directories in Neuron
Replies: 7
Views: 5104

Multiple file directories in Neuron

Hi, I am fairly new to Neuron and I am stuck with a small problem. I am trying to record data into various folders and file names. i want the files to be put into folders named by the conductance and the file name to be the current clamp amplitude. This is the code I am working with but can't seem t...