Search found 6357 matches

by ted
Fri Aug 16, 2024 11:28 am
Forum: NEURON + Python
Topic: Using a hoc cell template with Python
Replies: 3
Views: 2161

Re: Using a hoc cell template with Python

Great, glad to help! Please remember to let us know when you publish something that reports work done with NEURON.
by ted
Fri Aug 16, 2024 11:25 am
Forum: NEURON + Python
Topic: h.frecord_init() and Python Multiprocessing
Replies: 7
Views: 2692

Re: h.frecord_init() and Python Multiprocessing

Time to (re-)read the documentation of the Vector class's record() method at nrn.readthedocs.io. I bet it has been a long time since you last read it. It's hard to retain all that stuff after a single reading, especially the parts that don't pertain to the problem at hand (which is usually simple da...
by ted
Thu Aug 15, 2024 12:50 pm
Forum: NEURON + Python
Topic: Using a hoc cell template with Python
Replies: 3
Views: 2161

Re: Using a hoc cell template with Python

I haven't seen this CA1_PC_cAC_sig[0].soma[?] yet, but my guess would have been that it meant that "soma" is an "indexed" name, i.e., that when the "soma" thing was initially created, it was done with a statement of the form create soma[1] so that more than one section ...
by ted
Wed Aug 14, 2024 12:00 pm
Forum: NEURON + Python
Topic: can't run without GUI in Linux + slurm
Replies: 2
Views: 1717

Re: can't run without GUI in Linux + slurm

Thanks for posting that! For others who may read this thread, executing nrniv -h at the system prompt prints a list of options that may be specified when launching NEURON from a terminal. These options can also be passed to NEURON's python module through the NEURON_MODULE_OPTIONS environment variabl...
by ted
Mon Aug 12, 2024 11:01 am
Forum: NEURON + Python
Topic: h.frecord_init() and Python Multiprocessing
Replies: 7
Views: 2692

Re: h.frecord_init() and Python Multiprocessing

For embarrassingly parallel problems like this I have always used NEURON's bulletin-board style parallelization with MPI, so I can't give you any advice about python multiprocessing. That said, here's a suggestion that could reduce data storage requirements a bit: record the state variables that hav...
by ted
Thu Aug 01, 2024 11:53 am
Forum: MSWin
Topic: error creating nrnmech.dll modeldb 195615 with python
Replies: 6
Views: 3235

Re: error creating nrnmech.dll modeldb 195615 with python

To quote my previous post If nrnivmodl is run under Windows and encounters an NMODL file that relies on things that are not available in Windows, like SIGHUP, it will generate an error message and quit. Models that require such mechanisms are incompatible with Windows. Do you know if there's a trivi...
by ted
Wed Jul 31, 2024 11:23 pm
Forum: MSWin
Topic: error creating nrnmech.dll modeldb 195615 with python
Replies: 6
Views: 3235

Re: error creating nrnmech.dll modeldb 195615 with python

Tried nrnivmodl with NEURON 8.2.2 under Win 10, and had the same problem. The killer error appears to be 'SIGHUP" undeclared Apparently Windows doesn't have SIGHUP or anything equivalent to it--see http://stackoverflow.com/questions/3614020/ddg#3614203 If nrnivmodl is run under Windows and enco...
by ted
Wed Jul 31, 2024 6:38 pm
Forum: MSWin
Topic: error creating nrnmech.dll modeldb 195615 with python
Replies: 6
Views: 3235

Re: error creating nrnmech.dll modeldb 195615 with python

Just did a fresh install of latest version of Anaconda Python and NEURON under Win 10--specifically NEURON 8.2.6+ HEAD dated 2024-07-24. neurondemo works fine, which confirms that at least some mod files can be compiled. But trying to compile the mod files from modeldb.science/195615 produces the sa...
by ted
Wed Jul 31, 2024 3:47 pm
Forum: MSWin
Topic: error creating nrnmech.dll modeldb 195615 with python
Replies: 6
Views: 3235

Re: error creating nrnmech.dll modeldb 195615 with python

Under Linux nrnivmodl succeeds with 8.0a, 8.2.3, and 8.2.4 HEAD. I'll try with Windows.
by ted
Wed Jul 31, 2024 3:32 pm
Forum: NEURON + Python
Topic: Non-uniform parameter with colon notation?
Replies: 2
Views: 2062

Re: Non-uniform parameter with colon notation?

I wish I was able to use the more compact and straightforward colon thing (so I don't have to figure out the correct interpolation expression!). Is there a way to do that in Python? Might be compact and straightforward to you, but to many it would seem obscure (there's no accounting for taste, is t...
by ted
Thu Jul 18, 2024 12:12 pm
Forum: Getting started
Topic: Questions about "stylized" model and build a new n
Replies: 5
Views: 6063

Re: Questions about "stylized" model and build a new n

Continuing the discussion-- I did not implement this model, so regard everything that follows as informed speculation. What was the purpose of this particular model? Presumably to use the phenomenon of spatial summation to illustrate certain features of NEURON. This required a cellular topology that...
by ted
Wed Jul 17, 2024 10:39 am
Forum: Getting started
Topic: Questions about "stylized" model and build a new n
Replies: 5
Views: 6063

Re: Questions about "stylized" model and build a new n

How did you decide the values for the membrane mechanisms and morphology? The same way that one would design a computational model of any other physical system. First determine the purpose of the model, which is usually to study some phenomenon of interest that occurs in a physical system. Then dec...
by ted
Mon Jul 15, 2024 12:19 pm
Forum: NEURON + Python
Topic: change the onset time of voltage clamp
Replies: 3
Views: 3642

Re: change the onset time of voltage clamp

Two recommendations. 1. For the reasons mentioned above, don't activate the synapse at 0 ms. Instead, let the model execute for at least 1 ms before activating the synapse. 2. Use an FInitializeHandler (default type is good for this) to do two things during model initialization: (1) set the SEClamp'...
by ted
Fri Jul 12, 2024 10:32 am
Forum: NEURON + Python
Topic: change the onset time of voltage clamp
Replies: 3
Views: 3642

Re: change the onset time of voltage clamp

I am simulating a neural dynamic when it receives a synaptic input at t=0. An important concern in any experiment, whether on a living cell or a computational model, is the initial state of the system (cell or model) before any stimulus or perturbation is applied. If it is not in a resting state at...
by ted
Fri Jul 05, 2024 12:42 pm
Forum: Other questions
Topic: extracellular stimulation
Replies: 12
Views: 12714

Re: extracellular stimulation

I already know the mechanism: with a short pulse, there isn’t enough time for the membrane to depolarize and reach the activation threshold. True, but that's easily overcome by increasing stimulus amplitude, and it's only half of the story. A longer duration extracellular pulse can (1) reduce excit...