Search found 250 matches
- Thu Apr 20, 2023 11:06 am
- Forum: The GUI
- Topic: Problem plotting PlotShape
- Replies: 15
- Views: 1662
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...
- Thu Apr 20, 2023 10:44 am
- Forum: The GUI
- Topic: Problem plotting PlotShape
- Replies: 15
- Views: 1662
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?
- Tue Apr 18, 2023 1:51 pm
- Forum: OS X
- Topic: Ventura 13.2.1 and NEURON
- Replies: 2
- Views: 102
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...
- 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: 132
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...
- Mon Mar 20, 2023 6:21 pm
- Forum: Adding new mechanisms and functions to NEURON
- Topic: Current NMODL Best Practices
- Replies: 3
- Views: 108
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 ...
- Mon Dec 05, 2022 2:07 pm
- Forum: Parallel NEURON
- Topic: Parallel NEURON on HPC help
- Replies: 1
- Views: 309
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...
- 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: 585
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...
- 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: 240
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)
specs0, specs1, ... specs19 would work for names (and then you could have e.g. specs0i, ispecs0, etc)
- Thu Aug 25, 2022 3:08 am
- Forum: NEURON + Python
- Topic: Accessing Pointers instantiated through Python
- Replies: 6
- Views: 3198
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...
- Wed Aug 17, 2022 6:55 pm
- Forum: Getting started
- Topic: Installation of neuron, python compatibility
- Replies: 1
- Views: 3436
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...
- Fri Jul 29, 2022 2:46 pm
- Forum: Other questions
- Topic: h.finitialize() fails with a hocobj call error
- Replies: 5
- Views: 724
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...
- Tue Jun 14, 2022 2:56 pm
- Forum: Reaction-diffusion in NEURON
- Topic: Detection of MOD files in rxd.Region 'o'
- Replies: 3
- Views: 763
Re: Detection of MOD files in rxd.Region 'o'
Try putting the Shell next to the dendrite... i.e. you want lo = 1
The numbers here are in fractions of a radius not µm.
Code: Select all
fh = rxd.Region(h.allsec(), nrn_region='o', geometry=rxd.Shell(lo=1.0, hi=2.0))
- Mon Jun 13, 2022 4:03 pm
- Forum: Reaction-diffusion in NEURON
- Topic: Detection of MOD files in rxd.Region 'o'
- Replies: 3
- Views: 763
Re: Detection of MOD files in rxd.Region 'o'
We'll look into this. What you describe sounds like it should have worked.
- Mon Jun 13, 2022 3:56 pm
- Forum: NEURON + Python
- Topic: Minor typo in tutorial
- Replies: 1
- Views: 387
Re: Minor typo in tutorial
Fixed. Thanks.
For what it's worth, the tutorials at https://nrn.readthedocs.io are generally more up-to-date than the ones on the NEURON yale site (but we haven't moved all of them over yet).
For what it's worth, the tutorials at https://nrn.readthedocs.io are generally more up-to-date than the ones on the NEURON yale site (but we haven't moved all of them over yet).
- Thu Apr 14, 2022 1:09 pm
- Forum: NetPyNE
- Topic: Save rxd concentration
- Replies: 3
- Views: 640
Re: Save rxd concentration
If you're using NEURON 8.1+, the pure-NEURON solution is to either use h.SaveState (which saves ~everything) or rxd.save_state() and rxd.restore_state(), where the rxd-specific solutions represent state using byte-strings. See the (admittedly brief) discussion at https://nrn.readthedocs.io/en/latest...