Pythonic head modeling for Electrical Impedance Tomography (EIT):
git clone https://github.com/harmening/pyreite.git
cd pyreite
pip install -r requirements.txt
python setup.py install
Build pyreite image
$ docker build -t pyreite .
or pull from docker hub
$ docker pull harmening/pyreite:v0.2
import os.path.join as pth
from collections import OrderedDict
from pyreite.OpenMEEGHead import OpenMEEGHead
from pyreite.data_io import load_tri, load_elecs_dips_txt
# Load Colins surface meshes
geom = OrderedDict()
for tissue in ['cortex', 'csf', 'skull', 'scalp']:
geom[tissue] = load_tri(pth('tests', 'test_data', tissue+'.tri'))
# Define conductivity values [S/m]
cond = {'cortex': 0.201, 'csf': 1.65, 'skull': 0.01, 'scalp': 0.465}
# Load electrode positions
sens = load_elecs_dips_txt(pth('tests', 'test_data', 'electrodes_aligned.txt'))
# Create EIT head model
model = OpenMEEGHead(cond, geom, sens)
# Calculate EIT voltage measurement array
V = model.V