Search found 5625 matches

by ted
Mon Nov 18, 2019 10:39 am
Forum: NEURON hacks
Topic: How can I set coupling conductance explicitly to separate incoming from outgoing current?
Replies: 1
Views: 18

Re: How can I set coupling conductance explicitly to separate incoming from outgoing current?

For hypothesis testing purposes I'd like to have one compartment in the multi-compartment cell transmitting currents to all the connected compartments but not receiving current from all compartments. Is that doable in NEURON? If I correctly understand what you want (and I'm assuming that you aren't...
by ted
Sun Nov 17, 2019 2:59 pm
Forum: NEURON hacks
Topic: NMODL file in different folder
Replies: 6
Views: 1813

Re: NMODL file in different folder

I'm distributing models as part of a python package. During a post-install script I'd like to compile all of the mod files that are in a subfolder of the package, and I'd like NEURON to be able to find the resulting .dll from any folder on that machine. Right now it only seems to look in the curren...
by ted
Sun Nov 17, 2019 2:49 pm
Forum: Anatomically detailed models
Topic: measurments of area by section
Replies: 2
Views: 26

Re: measurments of area by section

I'm trying to obtain the surface of the different compartments. I understood that to obtain it for a section I should write totalarea_soma = 0 soma for (x,0) totalarea_soma += area(x) # take into account the number of nseg True. soma for (x,0) statement is equivalent to the following pseudocode: fo...
by ted
Fri Nov 15, 2019 8:03 am
Forum: Getting started
Topic: math operation
Replies: 1
Views: 23

Re: math operation

a\b
triggers an error message because \ is not recognized as an operator. Python thinks it is a line continuation mark. hoc doesn't recognize it at all. Search the Programmer's Reference for the term operator, or read Python's own reference materials.
by ted
Thu Nov 14, 2019 8:20 am
Forum: Adding new mechanisms and functions to NEURON
Topic: Calcium diffusion and shells
Replies: 1
Views: 41

Re: Calcium diffusion and shells

See chapter 9 of the NEURON Book. If you don't have the book, get this preprint https://www.neuron.yale.edu/ftp/ted/book/revisions/chap9indexedref.pdf If you installed NEURON from source code, see nrn/share/examples/nrniv/nmodl/cadif.mod which may be slightly different from the example in the book. ...
by ted
Fri Nov 08, 2019 4:45 pm
Forum: Reaction-diffusion in NEURON
Topic: The equilibrium between the FS and external
Replies: 17
Views: 358

Re: The equilibrium between the FS and external

That's a very good question. NEURON's computational engine can calculate ionic equilibrium potentials in the course of a simulation. If your model includes an NMODL-specified "ion accumulation mechanism" (a mechanism with a USEION statement that WRITEs the intra- or extracellular concentration of on...
by ted
Fri Nov 08, 2019 10:32 am
Forum: Getting started
Topic: model view
Replies: 3
Views: 116

Re: model view

No, NEURON works with Python 2.7 as well. But there's not much point in configuring NEURON to use 2.7 because the people who develop Python are terminating support for 2.7 in 2020. If I were you, I'd uninstall both NEURON and Python, then I'd install the latest stable Python 3.x, and after that I'd ...
by ted
Thu Nov 07, 2019 1:37 pm
Forum: Reaction-diffusion in NEURON
Topic: The equilibrium between the FS and external
Replies: 17
Views: 358

Re: The equilibrium between the FS and external

Don't worry about that--you don't have to repost anything. The new thread will go in this same discussion area, because it's about using rxd.
by ted
Thu Nov 07, 2019 8:59 am
Forum: Getting started
Topic: model view
Replies: 3
Views: 116

Re: model view

Recent distributions of NEURON require Python to be installed in order for Model View to work. If Python is not already installed on your computer, suggest uninstalling NEURON completely (if you're using Windows, run c:\nrn\uninstall.exe and then be sure to c:\nrn and its contents if that directory ...
by ted
Wed Nov 06, 2019 10:08 pm
Forum: Reaction-diffusion in NEURON
Topic: The equilibrium between the FS and external
Replies: 17
Views: 358

Re: The equilibrium between the FS and external

This thread will be split into two threads. The "new" thread will contain the posts on and after November 5. Reason: The posts starting with November 5 are on a different topic than the earlier posts. Basic Forum etiquette: 1. Do not make duplicate posts. 2. Questions or answers that diverge from th...
by ted
Wed Nov 06, 2019 10:02 pm
Forum: Reaction-diffusion in NEURON
Topic: Tracking External and Internal Na & K concentration
Replies: 2
Views: 79

Re: Tracking External and Internal Na & K concentration

This thread will be deleted.
Reason: duplicate post of a question.
by ted
Tue Nov 05, 2019 8:41 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: adrunge not thread safe
Replies: 2
Views: 111

Re: adrunge not thread safe

Good that warning turned up. Always specify an appropriate method. runge, adrunge, adams etc. are not appropriate. See
Integration methods for SOLVE statements viewtopic.php?f=28&t=592
in the Forum's Hot tips area. Those recommendations are current.
by ted
Tue Nov 05, 2019 10:10 am
Forum: NEURON + Python
Topic: How to add synapses to an Adex model
Replies: 4
Views: 177

Re: How to add synapses to an Adex model

It's an artificial spiking cell. It ignores the membrane potential and membrane currents of whatever section to which it is attached, and makes no contribution to that section's membrane currents. It also ignores the weight associated with whatever NetCons deliver events to it. Although it contains ...
by ted
Fri Nov 01, 2019 2:11 pm
Forum: Getting started
Topic: Spike configuration at internode sections of myelinated axon
Replies: 5
Views: 149

Re: Spike configuration at internode sections of myelinated axon

In myelinated sections, there are no transmembrane currents then why the intracellular potential changes instead of remaining at -65mV? Here's a hint at an answer: The cytoplasm in the myelinated internode acts like a resistor that the flow of current from one end of the internode to the other. Acc...
by ted
Thu Oct 31, 2019 11:40 am
Forum: UNIX/Linux
Topic: PyNeuron + Ubuntu + Python 3.6
Replies: 5
Views: 203

Re: PyNeuron + Ubuntu + Python 3.6

Install NEURON. If your program makes use of NEURON's GUI or standard run system, make sure that its main Python file (the one you call to launch your model/simulation) starts with the line from neuron import h, gui If it doesn't, that file should start with the line from neuron import h Then at the...