[Simnibs-discuss] First steps into Simnibs

Axel Thielscher axelt at drcmr.dk
Tue Mar 29 09:44:30 CEST 2022

Dear Quentin,

can you please send the matlab script where the error occured?



On 3/25/2022 4:54 PM, Quentin Mesnildrey wrote:
> Dear community,
> I am just beginning to run simulations using simnibs so I apologize in 
> advance if my question has been answered in the past. If so, please 
> redirect me to a previous discussion.
> I have managed to run tDCS simulation using the GUI. My next step is 
> to run it using matlab scripts. I started using the tutorial script 
> provided on the website. Everything seems to work well when I do not 
> change anything but when I remove the TMS component (which I am not 
> interested in), I end up with the following error message :
> **************
> if PL['type'][0] == 'TMSLIST':
> IndexError: only integers, slices (`:`), ellipsis (`...`), 
> numpy.newaxis (`None`) and integer or boolean arrays are
> valid indices
> **************
> Which seems to indicate that not having the TMS is problematic.
> I would deeply appriciate any advice on this (beginner) issue.
> Best regards,
Dr. Axel Thielscher
Professor of Neurophysics and Neuroimaging
Danish Research Center for Magnetic Resonance
Copenhagen University Hospital Hvidovre
DK-2650 Hvidovre, Denmark
Department of Health Technology
Technical University of Denmark
DK-2800 Kgs. Lyngby

More information about the Simnibs-discuss mailing list