Search found 6393 matches

by ted
Tue Jul 01, 2025 1:07 pm
Forum: Getting started
Topic: Help for adding multiple neurons and connecting them.
Replies: 7
Views: 573

Re: Help for adding multiple neurons and connecting them.

NEURON's GUI tools provide a "no code" way to not only create cell classes from morphometric data files but also to verify the integrity and appropriateness of such data. The workflow involves using the Import3d and CellBuilder tools. Online documentation is available, but it would take ve...
by ted
Wed Jun 25, 2025 5:46 pm
Forum: Getting started
Topic: Help for adding multiple neurons and connecting them.
Replies: 7
Views: 573

Re: Help for adding multiple neurons and connecting them.

The general workflow for developing network models starts by defining the cell classes that will be used. One useful way to organize network model code is to factor the code into several files. For example, for each cell class there would be a file that defines the anatomical and biophysical propert...
by ted
Tue Jun 24, 2025 1:02 pm
Forum: Getting started
Topic: Help for adding multiple neurons and connecting them.
Replies: 7
Views: 573

Re: Help for adding multiple neurons and connecting them.

Final comments: have you verified that your morphology files are suitable for computational modeling with NEURON? Are there orphaned branches, bottlenecks or other oddities affecting neurite diameters (e.g. minimum diameter larger than 1 um, "favorite numbers")? Is there evidence of z axis...
by ted
Tue Jun 24, 2025 12:56 pm
Forum: Getting started
Topic: Help for adding multiple neurons and connecting them.
Replies: 7
Views: 573

Re: Help for adding multiple neurons and connecting them.

More code than I like to paste as a single lump in one of these threads. Example of Python code that creates a cell class with morphology read from an SWC file. This was developed by Robert McDougal as one possible answer to one of the in-class hands-on exercises. It uses matplotlib to display simul...
by ted
Tue Jun 24, 2025 12:47 pm
Forum: Getting started
Topic: Help for adding multiple neurons and connecting them.
Replies: 7
Views: 573

Re: Help for adding multiple neurons and connecting them.

Nice clean code. Looks like somebody has experience with C or Matlab. General suggestions when developing network models: First define and test each cell class all by itself. Then try creating and connecting just two cells. Cell classes are important for several reasons. First is avoiding collisions...
by ted
Tue Jun 03, 2025 11:43 am
Forum: Modeling networks
Topic: Simulation fails when adding 3D location to cell
Replies: 3
Views: 4871

Re: Simulation fails when adding 3D location to cell

You might find a solution to your problem by reading about specification of geometry with Python https://nrn.readthedocs.io/en/latest/python/modelspec/programmatic/topology/ geometry.html#geometry-geometry or hoc https://nrn.readthedocs.io/en/latest/hoc/modelspec/programmatic/topology/geometry.html#...
by ted
Fri May 23, 2025 5:36 pm
Forum: Other questions
Topic: tACS
Replies: 1
Views: 2656

Re: tACS

I will assume that you are using the code in https://www.neuron.yale.edu/ftp/ted/neuron/extracellular_stim_and_rec.zip . The amplitude and time course of the extracellular stimulus is calculated by the procedure stim_waveform() in the file stim.hoc. The functionality of that procedure is very limite...
by ted
Fri May 23, 2025 1:50 pm
Forum: NEURON hacks
Topic: AlphaSynapse dynamics
Replies: 1
Views: 2456

Re: AlphaSynapse dynamics

Hello NEURON community: This post talks about the underlying equation of AlphaSynapse. https://www.sas.upenn.edu/LabManuals/BBB251/NIA/NEUROLAB/HELP/alphasyn.htm I am wondering if the "v", postsynaptic voltage, is constant (and set as resting voltage) or should change during current injec...
by ted
Tue May 13, 2025 11:49 am
Forum: Modeling networks
Topic: Simulation fails when adding 3D location to cell
Replies: 3
Views: 4871

Re: Simulation fails when adding 3D location to cell

I seem to have misplaced my scrying stone, and without that it is difficult to diagnose the unseen. Perhaps you could share what you mean by "add the 3D location" e.g. by providing code examples of what you did that worked, and what you did that didn't work.
by ted
Mon May 12, 2025 1:30 pm
Forum: NEURON + Python
Topic: Changing parameters in NMODL files from within a Python script?
Replies: 3
Views: 37411

Re: Changing parameters in NMODL files from within a Python script?

Good Python suggestion, urid. Here are some NEURON-specific comments: First, just to make sure that everyone who reads this thread knows what we're writing about-- 1. NMODL's global variables. An NMODL-specified mechanism's PARAMETERs are global by default (have the same value in all segments in whi...
by ted
Sun Apr 27, 2025 3:01 pm
Forum: UNIX/Linux
Topic: Windows 7.2 NEURON on Linux?
Replies: 3
Views: 14814

Re: Windows 7.2 NEURON on Linux?

You're quite welcome, Shaina. Glad to help!
by ted
Tue Mar 25, 2025 7:35 pm
Forum: Modeling networks
Topic: Adding extracellular stimulus to network of neurons
Replies: 9
Views: 52771

Re: Adding extracellular stimulus to network of neurons

I've never seen this msg signify a discontinuity. It's usually caused by NMODL code with rate constants that involve exponential functions. Typically the exp is in a denominator where limiting the value returned by exp(x) to exp(700) will do no harm. Nothing will blow up numerically, and your simula...
by ted
Tue Mar 25, 2025 7:30 pm
Forum: UNIX/Linux
Topic: Windows 7.2 NEURON on Linux?
Replies: 3
Views: 14814

Re: Windows 7.2 NEURON on Linux?

Hi, Shaina. Sorry about the delay, but I've been traveling a bit after the course we did at ASU week before last. Open a terminal and cd into the the folder that holds your code. If there is a file called nrnmech.dll, delete it. Or if you see a folder called x86_64, delete that and all its contents....
by ted
Thu Mar 13, 2025 1:24 am
Forum: Other questions
Topic: How is point process current added into the equation solved by NEURON
Replies: 2
Views: 23605

Re: How is point process current added into the equation solved by NEURON

The ODE for each segment is of the form transmembrane capacitive current + transmembrane ionic current = sum of all currents arriving in the segment from adjacent segments + sum of all currents that enter the segment from all point processes that generate currents Notice that current in these equati...
by ted
Tue Feb 25, 2025 8:43 am
Forum: NEURON + Python
Topic: Coreneuron CPU and multisplit
Replies: 1
Views: 13775

Re: Coreneuron CPU and multisplit

The primary utility of multisplit is to achieve load balance in network simulations, and that is useful only when the network contains a very few model cells that are very large. Otherwise the performance boost will not be worth the programmer's effort required to restructure your model. Few single ...