Search found 97 matches

by eacheon
Wed Jan 25, 2006 8:43 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: How to access C function (random, srandom..) in NMODL files?
Replies: 7
Views: 10043

I find this seems been asked before, but I can not see a direct solution found.
https://www.neuron.yale.edu/phpBB2/view ... =undefined
by eacheon
Wed Jan 25, 2006 8:43 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: How to access C function (random, srandom..) in NMODL files?
Replies: 7
Views: 10043

How to access C function (random, srandom..) in NMODL files?

This is from obidos2004_NEURON_example_4 downloaded from http://www.neuron.yale.edu/ftp/neuron/contrib/obidos_tutorials/ The .mod file compiles and when running main.hoc the mechanism does not get loaded. In the .mod file the C function "random()" and "srandom()" are used with ou...
by eacheon
Thu Jan 19, 2006 10:54 pm
Forum: Anatomically detailed models
Topic: Area Calculation - Channel Density
Replies: 6
Views: 12760

Re: Units, density (distributed) mechanisms, and point proce

En, I tried the above and found that there's no units listed in the panel. units() doesn't reply by printing stuff in a GUI window. It prints to NEURON's xterm, just like the example that I posted. So you followed the example I posted, exactly as shown, and got no reply at all? You literally typed ...
by eacheon
Thu Jan 19, 2006 2:21 pm
Forum: Anatomically detailed models
Topic: Area Calculation - Channel Density
Replies: 6
Views: 12760

Re: Units, density (distributed) mechanisms, and point proce

I am using the newest version NEURON for win xp. Is the above units note been removed? Not sure what you mean. Have you tried it and found it not to work? En, I tried the above and found that there's no units listed in the panel. Today I have another look and find that there are units for most butt...
by eacheon
Wed Jan 18, 2006 9:16 pm
Forum: NEURON + Python
Topic: request for comments
Replies: 13
Views: 20088

Re: request for comments

Can one imagine saying in Python? import nrn for sec in nrn.allsec(): if hh in sec.mechanisms(): for x in sec.locations(): print sec.name, x, sec.v(x), sec.hh.gnabar(x) If use list filtering, Python may be able to say: [ sec.name for sec in nrn.allsec() if sec.get("hh") ] if each section ...
by eacheon
Wed Jan 18, 2006 7:57 pm
Forum: Anatomically detailed models
Topic: Area Calculation - Channel Density
Replies: 6
Views: 12760

Re: Units, density (distributed) mechanisms, and point proce

oc>create soma oc>access soma oc>insert hh oc>units(&ina(0.5)) mA/cm2 oc>objref foo oc>foo = new IClamp(0.5) oc>units(&foo.i) nA oc> Example: in the context of the above model, click on NEURON Main Menu / Tools / Distributed Mechanisms / Viewers / Shape Name A new window pops up; let's call...
by eacheon
Wed Jan 18, 2006 2:22 pm
Forum: Getting started
Topic: first step in neuron
Replies: 8
Views: 16545

I am wondering will someone contribute a VIM syntax file for hoc
files? I am using one modified from java.vim but still hope for a
better one...