Skip to content

Commit 0524fb1

Browse files
author
adam
committed
Merge branch 'rxd_mcr_mult_fix' of ssh://github.com/neuronsimulator/nrn into rxd_mcr_mult_fix
2 parents 78e1438 + 905b325 commit 0524fb1

51 files changed

Lines changed: 368 additions & 77 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ project(
1919
NEURON
2020
VERSION 9.0.1
2121
LANGUAGES C CXX
22-
HOMEPAGE_URL "https://nrn.readthedocs.io/")
22+
HOMEPAGE_URL "https://www.neuronsimulator.org/")
2323

2424
# =============================================================================
2525
# CMake common project settings

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Build Status](https://dev.azure.com/neuronsimulator/nrn/_apis/build/status/neuronsimulator.nrn?branchName=master)](https://dev.azure.com/neuronsimulator/nrn/_build/latest?definitionId=1&branchName=master) [![Actions Status](https://github.com/neuronsimulator/nrn/actions/workflows/windows.yml/badge.svg?branch=master)](https://github.com/neuronsimulator/nrn/actions) [![Actions Status](https://github.com/neuronsimulator/nrn/workflows/NEURON%20CI/badge.svg)](https://github.com/neuronsimulator/nrn/actions) [![codecov](https://codecov.io/gh/neuronsimulator/nrn/branch/master/graph/badge.svg?token=T7PIDw6LrC)](https://codecov.io/gh/neuronsimulator/nrn) [![Documentation Status](https://readthedocs.org/projects/nrn/badge/?version=latest)](http://nrn.readthedocs.io/?badge=latest)
22

33
# NEURON
4-
NEURON is a simulator for models of neurons and networks of neuron. See [nrn.readthedocs.io](https://nrn.readthedocs.io) for documentation, tutorials, and announcements of courses and conferences. Installers are available on [GitHub Releases](https://github.com/neuronsimulator/nrn/releases) and the source code on [GitHub](https://github.com/neuronsimulator/nrn).
4+
NEURON is a simulator for models of neurons and networks of neuron. See [https://www.neuronsimulator.org](https://www.neuronsimulator.org) for documentation, tutorials, and announcements of courses and conferences. Installers are available on [GitHub Releases](https://github.com/neuronsimulator/nrn/releases) and the source code on [GitHub](https://github.com/neuronsimulator/nrn).
55
Ask questions on our [Discussion Forum](https://github.com/neuronsimulator/nrn/discussions).
66

77
## Installing NEURON
@@ -26,7 +26,7 @@ It is possible to install the Linux Python wheels on Windows via the Windows Sub
2626
2727
## Documentation
2828

29-
* See [https://nrn.readthedocs.io/en/latest/](https://nrn.readthedocs.io/en/latest/) for latest, nightly snapshot
29+
* See [https://www.neuronsimulator.org/en/latest/](https://www.neuronsimulator.org/en/latest/) for latest, nightly snapshot
3030
* See [docs/README.md](docs/README.md) for information on documentation (local build, Read the Docs setup)
3131

3232
## Changelog

bin/nrnivmodl.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ make -j 4 -f "${bindir}/nrnmech_makefile" "ROOT=${prefix}" "MODOBJFILES=$MODOBJS
287287
echo "Successfully created $MODSUBDIR/special"
288288
else
289289
printf "\nNOTE: If you are encountering MOD file compilation errors only with NEURON version 9.0 or later\n"
290-
printf "refer to the C++ migration guide at https://nrn.readthedocs.io/en/9.0.0/guide/porting_mechanisms_to_cpp.html\n\n"
290+
printf "refer to the C++ migration guide at https://www.neuronsimulator.org/en/9.0.0/guide/porting_mechanisms_to_cpp.html\n\n"
291291
fi
292292

293293
exit $MAKE_STATUS

ci/win_download_deps.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pwsh -command Invoke-WebRequest -MaximumRetryCount 4 -OutFile msmpisdk.msi https
1515

1616
:: nsis + plugin
1717
curl -LO --retry 4 http://prdownloads.sourceforge.net/nsis/nsis-3.05-setup.exe || goto :error
18-
pwsh -command Invoke-WebRequest -MaximumRetryCount 4 -OutFile EnVar_pugin.zip https://nsis.sourceforge.io/mediawiki/images/7/7f/EnVar_plugin.zip || goto :error
18+
pwsh -command Invoke-WebRequest -MaximumRetryCount 4 -OutFile EnVar_plugin.zip https://github.com/GsNSIS/EnVar/releases/download/v0.3.1/EnVar-Plugin.zip || goto :error
1919

2020
:: if all goes well, go to end
2121
goto :EOF

ci/win_install_deps.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ C:\Python314\python.exe -m pip install "setuptools<=80.8.0" || goto :error
3030

3131
:: install nsis
3232
nsis-3.05-setup.exe /S || goto :error
33-
pwsh -command Expand-Archive EnVar_pugin.zip -DestinationPath "${env:ProgramFiles(x86)}\NSIS" || goto :error
33+
pwsh -command Expand-Archive EnVar_plugin.zip -DestinationPath "${env:ProgramFiles(x86)}\NSIS" || goto :error
3434

3535
:: install mpi
3636
msmpisetup.exe -unattend -installroot C:\msmpi || goto :error

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"C++",
3535
"Python 3"
3636
],
37-
"relatedLink": "https://nrn.readthedocs.io/",
37+
"relatedLink": "https://www.neuronsimulator.org/",
3838
"schema:releaseNotes": "This release fixes several bugs and adds support for Python 3.14.\n\n### What's New\n- Add Python 3.14 support (#3635)\n- Remove doxygen from search results on readthedocs (#3664)\n- Add example with compilation for C API (#3658)\n\n### Bug Fixes\n- Use `[:blank:]` character class for SWC parser (#3651)\n- Fix HOC File.dir() on Windows (#3653)\n- NET_RECEIVE INITIAL not vectorized translation needs set_globals_from_prop (#3640)\n\n### Improvements / Other Changes\n- Make `NRN_INSTALL_PYTHON_PREFIX` configurable (#3654)\n- Improve error message when Python lib is not found (#3650)\n- Use `command -v` instead of `which` in nrnpyenv.sh (#3516)\n- Better errors for `report.conf` (#3641)\n- Bump min required CMake version to 3.19\n",
3939
"softwareRequirements": [
4040
"Bison",

contributing_to_documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ If your notebook downloads external data or depends on MOD files, include all re
5656

5757
## Contributing Videos
5858

59-
The [videos section of the NEURON documentation](https://nrn.readthedocs.io/en/latest/videos/) is primarily a curated list of recorded courses and lectures, many hosted externally on YouTube or similar platforms. Contributing a video is therefore a two-step process: creating the video itself, and then adding a reference to it in the documentation.
59+
The [videos section of the NEURON documentation](https://www.neuronsimulator.org/en/latest/videos/) is primarily a curated list of recorded courses and lectures, many hosted externally on YouTube or similar platforms. Contributing a video is therefore a two-step process: creating the video itself, and then adding a reference to it in the documentation.
6060

6161
For the reference page, videos are documented in `.rst` files under `docs/videos/`. Each entry typically includes the video title, a brief description of what is covered, the year or course it belongs to, and an embedded link or thumbnail. Follow the existing format in those files when adding a new entry.
6262

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Latest NEURON documentation is available on:
66

7-
* ReadTheDocs @ [https://nrn.readthedocs.io/en/latest/](https://nrn.readthedocs.io/en/latest/).
7+
* ReadTheDocs @ [https://www.neuronsimulator.org](https://www.neuronsimulator.org).
88

99
Contents:
1010

docs/capi.rst

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -526,18 +526,45 @@ Segments
526526
:param x: Normalized position along Section (0.0 to 1.0).
527527
:returns: Diameter in microns at the specified position.
528528
529+
When the section geometry is defined by 3d points (:func:`pt3dadd`), the
530+
segment diameter is derived from those points. This getter triggers that
531+
recompute if it is pending, so the value is correct even before an explicit
532+
geometry pass such as :func:`define_shape` or :func:`finitialize`.
533+
529534
**C Usage:**
530-
535+
531536
.. code-block:: c
532-
537+
533538
double diameter = nrn_segment_diam_get(soma, 0.5); // Get diameter at middle
534539
535540
**Python Equivalent:**
536-
541+
537542
.. code-block:: python
538-
543+
539544
diameter = soma(0.5).diam # Get diameter at middle of Section
540545
546+
.. c:function:: int nrn_segment_node_index(Section* sec, double x)
547+
548+
Get the index of the node for the segment at normalized position x along
549+
the Section, in NEURON's internal node array. Node indices become canonical
550+
once the tree has been set up (for example after :func:`finitialize`).
551+
552+
:param sec: Pointer to the Section.
553+
:param x: Normalized position along Section (0.0 to 1.0).
554+
:returns: The node index, or -1 if sec is NULL or has been deleted.
555+
556+
**C Usage:**
557+
558+
.. code-block:: c
559+
560+
int idx = nrn_segment_node_index(soma, 0.5); // node index at middle
561+
562+
**Python Equivalent:**
563+
564+
.. code-block:: python
565+
566+
idx = soma(0.5).node_index() # node index at middle of Section
567+
541568
.. c:function:: void nrn_rangevar_push(Symbol* sym, Section* sec, double x)
542569
543570
Push a range variable for a Section at position x onto the NEURON stack.
@@ -709,10 +736,14 @@ Functions, objects, and the stack
709736
710737
.. c:function:: double* nrn_symbol_dataptr(const Symbol* sym)
711738
712-
Get a pointer to the data for a symbol (for variables).
739+
Get a pointer to the storage for a scalar variable, for direct reading and
740+
writing. This covers built-in ``USERDOUBLE`` scalars such as ``t`` (time) as
741+
well as runtime scalars created in HOC (e.g. ``x = 42``), whose value lives
742+
in the top-level object-data array rather than at ``sym->u.pval``.
713743
714744
:param sym: Pointer to the symbol.
715-
:returns: Pointer to the symbol's data, or NULL if not applicable.
745+
:returns: Pointer to the symbol's data, or the raw ``sym->u.pval`` for
746+
symbols that are not top-level runtime scalars.
716747
717748
**Usage Pattern:**
718749

docs/cmake_doc/options.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,10 @@ NRN_ENABLE_PYTHON:BOOL=ON
308308

309309
NRN_INSTALL_PYTHON_PREFIX:STRING="lib/python/neuron/"
310310
-----------------------------------------------------
311-
Path where NEURON Python components will be installed, relative to CMAKE_INSTALL_PREFIX. Must end with a directory named "neuron"
312-
313-
Environment variable PYTHONPATH must contain the real path to NRN_INSTALL_PYTHON_PREFIX in order for python to find neuron.
314-
315-
This path must end with a directory named "neuron"
311+
Path where NEURON Python components will be installed, relative to
312+
``CMAKE_INSTALL_PREFIX``. Must end with a directory named "neuron".
313+
Environment variable ``PYTHONPATH`` must contain the real path to
314+
``NRN_INSTALL_PYTHON_PREFIX`` in order for python to find neuron.
316315

317316
For venv's, configure cmake with:
318317

0 commit comments

Comments
 (0)