To quickly set up and run the NEST Simulator with the Felix Module, use the provided Docker image.
docker pull maxc93/cogninestdocker run --rm -it maxc93/cogninestIf the application runs a web service, use:
docker run -d -p 8080:80 maxc93/cogninestThen access it at http://localhost:8080.
To explore the environment:
docker run --rm -it maxc93/cogninest /bin/bashEnsure your system is up to date and has the required dependencies installed:
sudo apt update && sudo apt upgrade -y
sudo apt install -y build-essential cmake git libtinfo-dev wgetDownload and install Miniconda for managing Python environments:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda3Add Miniconda to the system PATH:
export PATH="$HOME/miniconda3/bin:$PATH"
echo 'export PATH="$HOME/miniconda3/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc # Reload shell configurationClone the NEST repository and switch to the desired branch:
git clone --branch 3.6-develop https://github.com/nest/nest-simulator.gitCreate and activate a Conda environment for NEST:
conda env create --name nest --file=nest-simulator/environment.yml
conda activate nestCreate a build directory:
mkdir -p ~/nest_build && cd ~/nest_buildEnsure a clean build by removing old files:
rm -rf CMakeCache.txt CMakeFilesConfigure the NEST build:
CMAKE_PREFIX_PATH=${CONDA_PREFIX} cmake -DCMAKE_INSTALL_PREFIX:PATH=`pwd`/install ~/nest-simulatorCompile and install NEST:
make -j$(nproc) install
make installcheckSet NEST environment variables:
source install/bin/nest_vars.sh
echo 'source ~/nest_build/install/bin/nest_vars.sh' >> ~/.bashrc
source ~/.bashrc # Apply changesCreate and enter the Felix build directory:
mkdir -p ~/felix_build && cd ~/felix_buildRemove any old build files:
rm -rf ~/felix_build/*Configure the Felix module:
CMAKE_PREFIX_PATH=${CONDA_PREFIX} cmake -Dwith-nest=../nest_build/install/bin/nest-config ../nest_testCompile and install Felix:
make -j$(nproc)
make installClone the Cogninest repo:
git clone https://github.com/MaximeCarriere/cogninest.gitInstall additional dependencies:
cd cogninest
pip install -r requirements.txt- Verify NEST Installation:
nest --version
- Test Felix Module:
import nest nest.Install('felixmodule')
To run a simulation, navigate to the correct directory and execute the Python script:
cd ~/cogninest/training_testing/main/
python main_training.py🚀 You're now ready to use NEST and Cogninest!