Search found 267 matches

by ramcdougal
Thu Jun 01, 2023 9:53 pm
Forum: NEURON + Python
Topic: How to cut the simulation in-between into two runs?
Replies: 6
Views: 14154

Re: How to cut the simulation in-between into two runs?

Just to add one point, the underlying issue here is that Vector.record has to be defined before the simulation is initialized... but yeah, no reason to create a new variable for the second half.
by ramcdougal
Thu Jun 01, 2023 4:32 pm
Forum: UNIX/Linux
Topic: configuring neuron on a cluster with a local install of python - and getting it to use that python with nrniv -python
Replies: 3
Views: 31254

Re: configuring neuron on a cluster with a local install of python - and getting it to use that python with nrniv -pytho

NEURON hasn't supported ./configure since the 7.x series over two years ago. Unless there's a specific reason to use an old version, don't. On a cluster, it's easiest to just do: pip3 install --user neuron In addition to installing the Python libraries, it'll add the binaries (e.g. nrniv, nrnivmodl,...
by ramcdougal
Thu Apr 20, 2023 11:06 am
Forum: The GUI
Topic: Problem plotting PlotShape
Replies: 15
Views: 38503

Re: Problem plotting PlotShape

This appears to be a Windows-specific problem, but I see the same thing with a development version of NEURON (8.2.2+) and Python 3.11.3 on Windows 10: (py311) C:\Users\Robert McDougal>python Python 3.11.3 | packaged by Anaconda, Inc. | (main, Apr 19 2023, 23:46:34) [MSC v.1916 64 bit (AMD64)] on win...
by ramcdougal
Thu Apr 20, 2023 10:44 am
Forum: The GUI
Topic: Problem plotting PlotShape
Replies: 15
Views: 38503

Re: Problem plotting PlotShape

All of that ought to work, but NEURON 7.8 is pretty old. Do you get the same problem in 8.2.2?
by ramcdougal
Tue Apr 18, 2023 1:51 pm
Forum: OS X
Topic: Ventura 13.2.1 and NEURON
Replies: 2
Views: 12800

Re: Ventura 13.2.1 and NEURON

(For the purposes of this post, I'm using "M1" as a shorthand for M1, M2, and their variants.) You have an x86_64 version of Python but the M1 version of NEURON and gcc . Uninstall your anaconda, and then get the version labelled "64-Bit (M1) Graphical Installer (564 MB)" from ht...
by ramcdougal
Tue Mar 28, 2023 6:01 pm
Forum: NEURON + Python
Topic: Null pointer error when trying to access the pointer through python
Replies: 4
Views: 13747

Re: Null pointer error when trying to access the pointer through python

We have a video on networks and numerical methods on the NEURON YouTube channel: https://youtube.com/watch?v=r9dxBS_e_RI You may also be interested in checking out the ball-and-stick tutorials... they'll step you through creating your first cell to building a ring network: https://nrn.readthedocs.io...
by ramcdougal
Mon Mar 20, 2023 6:21 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Current NMODL Best Practices
Replies: 3
Views: 11994

Re: Current NMODL Best Practices

Another way of putting it: the description specified in nmodl400.pdf is still pretty accurate. The text you found refers to something very specific to xtra.mod... most models will still use BREAKPOINT instead. See hh.mod for how NEURON implemented Hodgkin-Huxley itself. A few suggestions for modern ...
by ramcdougal
Mon Dec 05, 2022 2:07 pm
Forum: Parallel NEURON
Topic: Parallel NEURON on HPC help
Replies: 1
Views: 6623

Re: Parallel NEURON on HPC help

Sounds like NEURON might have been built without dynamic MPI, in which case it'll try to use whichever version of MPI was picked at compile time. Before we try debugging the compilation instructions for 7.6, have you tested to see if the current release (8.2.1) binary works? Even if you want the old...
by ramcdougal
Mon Nov 14, 2022 2:56 pm
Forum: UNIX/Linux
Topic: [SOLVED] Unable to run nrniv -python with NEURON 8.0.0 installed via pip
Replies: 6
Views: 14480

Re: Unable to run nrniv -python with NEURON 8.0.0 installed via pip

Not sure why it doesn't like nrniv -python , but launching nrniv when you really want to run python complicates things unnecessarily. As long as your script initializes MPI before setting up the model, either via mpi4py or via: h.nrnmpi_init() it suffices to just: mpiexec -n 2 python run_model_to_st...
by ramcdougal
Mon Sep 19, 2022 3:05 pm
Forum: Reaction-diffusion in NEURON
Topic: Reading species concentration in a MOD file using a list of species
Replies: 1
Views: 10964

Re: Reading species concentration in a MOD file using a list of species

Unfortunately, the []s will cause problems for trying to read/write them from mod files.

specs0, specs1, ... specs19 would work for names (and then you could have e.g. specs0i, ispecs0, etc)
by ramcdougal
Thu Aug 25, 2022 3:08 am
Forum: NEURON + Python
Topic: Accessing Pointers instantiated through Python
Replies: 6
Views: 16914

Re: Accessing Pointers instantiated through Python

setpointer literally sets a double* that's allocated inside of the MOD file. Once the assignment has been made, there is no explicit semantic information obtainable from the pointer. That is, h.setpointer(secA(0.5)._ref_v, 'V_pre', synAB) is 100% equivalent to: synAB._ref_V_pre = secA(0.5)._ref_v Bo...
by ramcdougal
Wed Aug 17, 2022 6:55 pm
Forum: Getting started
Topic: Installation of neuron, python compatibility
Replies: 1
Views: 10937

Re: Installation of neuron, python compatibility

The binaries for NEURON 7.7 would not work with Python 3.8, which did not exist at the time 7.7 was released. I imagine it would work if it was compiled specifically for 3.8, but I would strongly suggest using a more recent version of NEURON. My guess is that it's saying there's a folder called &quo...
by ramcdougal
Fri Jul 29, 2022 2:46 pm
Forum: Other questions
Topic: h.finitialize() fails with a hocobj call error
Replies: 5
Views: 8273

Re: h.finitialize() fails with a hocobj call error

Here's a possible clue... it's looking for a .so file. Usually on Windows, the equivalent is a .dll Are you using the regular Windows version of NEURON or a version the windows subsystem for linux (WSL)? Either way, if you try running with python -i myprogram.py (that is, add the -i flag so it doesn...
by ramcdougal
Tue Jun 14, 2022 2:56 pm
Forum: Reaction-diffusion in NEURON
Topic: Detection of MOD files in rxd.Region 'o'
Replies: 3
Views: 13239

Re: Detection of MOD files in rxd.Region 'o'

Try putting the Shell next to the dendrite... i.e. you want lo = 1

Code: Select all

fh = rxd.Region(h.allsec(), nrn_region='o', geometry=rxd.Shell(lo=1.0, hi=2.0))
The numbers here are in fractions of a radius not µm.
by ramcdougal
Mon Jun 13, 2022 4:03 pm
Forum: Reaction-diffusion in NEURON
Topic: Detection of MOD files in rxd.Region 'o'
Replies: 3
Views: 13239

Re: Detection of MOD files in rxd.Region 'o'

We'll look into this. What you describe sounds like it should have worked.