Search found 110 matches

by pascal
Wed Aug 09, 2023 2:46 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: NMODL code no longer works in version 8.2
Replies: 7
Views: 20154

Re: NMODL code no longer works in version 8.2

Thank you both for the help. I could use a little more advice, though, because both approaches seemed to work. Simply removing all three extern lines resulted in successful compilation. But your approach also resulted in successful compilation, Michael (although I did have to also remove the third e...
by pascal
Wed Aug 09, 2023 2:06 pm
Forum: MSWin
Topic: Python cannot import neuron library on Windows install
Replies: 7
Views: 18564

Re: Python cannot import neuron library on Windows install

All right, finally got it working. I uninstalled both NEURON and Anaconda. I then re-installed them, but installed Anaconda first, and NEURON second. (Before, the order was reversed.) I'm not sure why, but the order of installation seemed to matter, at least in my case.
by pascal
Mon Aug 07, 2023 12:41 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: NMODL code no longer works in version 8.2
Replies: 7
Views: 20154

NMODL code no longer works in version 8.2

Many moons ago at a NEURON workshop, Michael Hines helped me write the following NMODL code, which I used to stochastically stimulate various sets of synapses: :this code uses Random123, which requires NEURON 7.3 or higher :uses nrnran123.c and nrnran123.h from http://www.neuron.yale.edu/hg/neuron/n...
by pascal
Thu Jul 27, 2023 3:54 pm
Forum: MSWin
Topic: Python cannot import neuron library on Windows install
Replies: 7
Views: 18564

Re: Python cannot import neuron library on Windows install

Uninstalled, reinstalled, restarted...still the exact same error message.
by pascal
Wed Jul 26, 2023 5:28 pm
Forum: MSWin
Topic: Python cannot import neuron library on Windows install
Replies: 7
Views: 18564

Python cannot import neuron library on Windows install

I'm having trouble installing NEURON 8.2 on Windows 11. I installed NEURON 8.2 using the installer from the website, then installed Anaconda. When I open Python and type from neuron import h , I get this: Traceback (most recent call last): File "c:\nrn\lib\python\neuron\__init__.py", line ...
by pascal
Thu Jul 14, 2022 7:07 pm
Forum: NetPyNE
Topic: NetPyNE hanging with MPI
Replies: 0
Views: 39244

NetPyNE hanging with MPI

I am just starting out with Netpyne (though I have used NEURON for quite some time). I just installed NetPyNE on my Windows machine, and I successfully ran tut1.py in serial (from http://www.netpyne.org/tutorial.html). However, when I ran it with MPI, it generated all the same output files and seeme...
by pascal
Tue Jun 23, 2020 1:43 pm
Forum: Other questions
Topic: vector.play memory efficiency
Replies: 4
Views: 10951

Re: vector.play memory efficiency

Here is the mod file Ted recommended for implementing vector.play in a memory-efficient way: COMMENT VecSyn, a "synaptic mechanism" whose conductance is driven by Vector.play. Actual synaptic conductance is gs. gs is the product of a scale factor k and gnorm, where gnorm is in microsiemens...
by pascal
Wed Jun 17, 2020 6:57 pm
Forum: Other questions
Topic: vector.play memory efficiency
Replies: 4
Views: 10951

Re: vector.play memory efficiency

The first option: a sampled time course of synaptic conductance.
by pascal
Wed Jun 17, 2020 2:04 pm
Forum: Other questions
Topic: vector.play memory efficiency
Replies: 4
Views: 10951

vector.play memory efficiency

I have a simulation where I need to play hundreds of vectors into synaptic conductances. These vectors are all just scaled versions of one another. Here is an outline of the code: signal=np.loadtxt(#some txt file that defines trace for synapses gmax) syn_gmax_vec=h.Vector(signal) syn_veclist = [] fo...
by pascal
Wed Apr 08, 2020 3:18 pm
Forum: Modeling networks
Topic: Local Field Potentials
Replies: 4
Views: 19559

Re: Local Field Potentials

Also, here is a previous thread with code for a minimal working model to calculate the LFP:
viewtopic.php?f=8&t=3656&p=15713#p15713
by pascal
Sun Apr 05, 2020 2:00 pm
Forum: Modeling networks
Topic: Incorporating a firing model to induce different stages of sleep
Replies: 14
Views: 21835

Re: Incorporating a firing model to induce different stages of sleep

Okay, now I'm attempting to incorporate my firing rate model within a toy parallel network model. I started with the parallel ring network outlined here: https://www.neuron.yale.edu/phpBB/viewtopic.php?f=12&t=4270 I then added a dummy section (for the firing rate model) to the 0th host. In gener...
by pascal
Fri Mar 27, 2020 10:41 pm
Forum: Modeling networks
Topic: Minimal parallel ring network
Replies: 2
Views: 10616

Re: Minimal parallel ring network

Never mind, I found my stupid mistake: I forgot to connect the dendrite to the soma. I was tempted to take this post down to save the embarrassment, but I figured I'd leave it up for posterity (since I couldn't find the code for this Python parallelized ring network anywhere online). Here's the work...
by pascal
Fri Mar 27, 2020 6:14 pm
Forum: Modeling networks
Topic: Minimal parallel ring network
Replies: 2
Views: 10616

Minimal parallel ring network

I'm trying to implement the code for a minimal parallel ring network, from the 2019 NEURON Course (I could not find the code anywhere online, so I adapted it from the course book). When I run the program (in serial, for now), for some reason the code to stimulate the 0th cell has no effect. When I p...
by pascal
Sun Mar 15, 2020 7:03 pm
Forum: Modeling networks
Topic: Incorporating a firing model to induce different stages of sleep
Replies: 14
Views: 21835

Re: Incorporating a firing model to induce different stages of sleep

Perfect, thanks Robert. I see that your solution is exactly what I used before in the LinearMechanism implementation, but I thought it worked then only because I was passing a vector as the argument (i.e., I didn't realize that was the general way to dereference a pointer). Thanks again, and here's ...
by pascal
Wed Mar 11, 2020 4:27 pm
Forum: Modeling networks
Topic: Incorporating a firing model to induce different stages of sleep
Replies: 14
Views: 21835

Re: Incorporating a firing model to induce different stages of sleep

I decided to try to implement the program I last posted using mod files, rather than LinearMechanism. I almost have it, except for an issue with the callback function similar to what I encountered a few posts ago. When I define the runtime_callback (to be used by extra_scatter_gather), I want to sen...