The main goal of SimNIBS is to calculate electric fields caused by Transcranial Electrical Stimulation (TES) and Transcranial Magnetic Stimulation (TMS).
The pipeline is divided in three parts:
- Automatic segmentation of MRI images and meshing to create individualized head models
- Calculation of electric fields through the Finite Element Method (FEM)
- Post-processing of results for further analysis.
Linux | Windows | MacOS |
---|---|---|
SimNIBS runs on 64bit Windows, Linux and MacOS machines. Please visit the SimNIBS website for instructions on how to download and install SimNIBS.
After cloning the repository (for all platforms except arm64 Macs):
conda env create -f environment_.yml -n <name_of_my_environment>
conda activate <name_of_my_environment>
python -m pip install --editable .
python simnibs/cli/link_external_progs.py
If above didnt work, try the following:
conda env create -f "environment_win.yml"
conda activate simnibs_env
pip install -f https://github.com/simnibs/simnibs/releases/latest simnibs
If this not working use, download the .whl
file then:
pip install simnibs-4.1.0-cp39-cp39-win_amd64.whl --user
If loop module import raise error, try to delete simnibs\__init__.py
file.
Example dataset can be downloaded from the following link: https://github.com/simnibs/example-dataset/releases/latest/download/simnibs4_examples.zip
NOTE
Currently on arm64 Macs it is only possible to build by creating an x86_64 environment. To do so, replace the first command above with:
conda env create -f environment_.yml -n <name_of_my_environment> --platform osx-64
If the
--platform
argument is not available in your version ofconda
, useCONDA_SUBDIR=osx-64 conda env create -f environment_.yml -n <name_of_my_environment> conda env config vars set CONDA_SUBDIR=osx-64 -n <name_of_my_environment>
The latter command ensures that new packages are also installed from the
osx-64
subdir in this environment.
Please see the SimNIBS website for a complete list of contributors.
We have included code or binaries from the following project to this repository:
For a full list of files and licenses, please see the 3RD-PARTY.md file