Skip to main content

cereb_nest

pip installable NEST extension module, generated by pipnest.

Installation instructions

Using pip

When installed through pip the module is built for you with CMake outside of the python package folder, this means that pip cannot track the real installation status. To uninstall and reinstall see Uninstallation.

  1. Install NEST following the instructions provided here (https://www.nest-simulator.org/)

  2. Install using pip

pip install cereb_nest --no-cache-dir
  1. Load the module after importing nest:
import nest
nest.Install("cerebmodule")

Uninstallation

To uninstall this module use pip uninstall cereb_nest and remove the (lib)cerebmodule.so files from the lib/nest/ directory in your nest installation.

Using CMake

  1. Export an Environment Variable containing the installation directory of NEST. E.g.:
export NEST_INSTALL_DIR=$HOME/nest-simulator-install
  1. Clone this GitHub Repository in a directory outside NEST source and build directories. E.g.:
cd $HOME
git clone https://github.com/dbbs-lab/cereb-nest/
  1. Move to the cereb-nest directory and create a new folder where you will build the extension module
cd cereb-nest
mkdir build
cd build
  1. Run the following CMake command (Tested with CMake 3.2.2)
cmake -Dwith-nest=${NEST_INSTALL_DIR}/bin/nest-config ../cereb_nest

The resulting output should be something similar to:

[...]
-------------------------------------------------------

You can now build and install 'cerebmodule' using
  make
  make install

The library file libcerebmodule.so will be installed to
  /home/alberto/nest-simulator-install/lib/nest
Help files will be installed to
  /home/alberto/nest-simulator-install/share/doc/nest

The module can be loaded into NEST using
  (cerebmodule) Install        (in SLI)
  nest.Install('cerebmodule')  (in PyNEST)

The module will be installed into a non-default location!
Make sure to set the environment variables:
  export NEST_MODULE_PATH=/home/alberto/nest-simulator-install/lib/nest:$NEST_MODULE_PATH
  export SLI_PATH=/home/alberto/nest-simulator-install/share/nest/sli:$SLI_PATH

 [...]
  1. Execute the last two lines, generated by the CMake command.
export NEST_MODULE_PATH=/home/alberto/nest-simulator-install/lib/nest:$NEST_MODULE_PATH
export SLI_PATH=/home/alberto/nest-simulator-install/share/nest/sli:$SLI_PATH

This passage should be repeated every time the Terminal is closed. It is possible to add the two lines in your .bashrc to avoid doing this every time.

  1. Make and install the module
make
make install
  1. Every time you need the module, you can install it in this way:
import nest
nest.Install("cerebmodule")
  1. You can now use all the nodes and synapses contained in this NEST Module.

Metadata

Release files for cereb-nest 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cereb-nest 1.0.0
File Size Uploaded
cereb_nest-1.0.0.tar.gz 44.7 kB Details

Release files / cereb_nest-1.0.0.tar.gz

Download URL cereb_nest-1.0.0.tar.gz
Size 44.7 kB
Tags Source
SHA-256 checksum
How to use checksums
39f9639d6f0e241ae20d18646edffa691e8e5a1926d253d62ca8a73040ffcfb7
BLAKE2b-256 checksum
How to use checksums
aba4b94315039c907b14f1e12655492cd77ffa213cb22cf44a70c68d74fb50b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page