Note
Go to the end to download the full example code.
Various ways to create measurement configurations¶
from reda import ConfigManager
configs = ConfigManager(nr_of_electrodes=32)
configs.gen_gradient(skip=10, step=8, vskip=5)
configs.gen_dipole_dipole(skipc=1)
configs.gen_gradient()
configs.gen_schlumberger(15, 16)
print(configs.configs)
[[ 1 12 2 8]
[ 1 12 3 9]
[ 1 12 4 10]
...
[ 3 28 15 16]
[ 2 29 15 16]
[ 1 30 15 16]]
export mechanisms:
import reda
with reda.CreateEnterDirectory('exported_configs'):
configs.to_iris_syscal('syscal_configs.txt')
configs.write_configs('abmn.dat')
configs.write_crmod_config('config.dat')