[Simnibs-discuss] Issue with Export to Brainsight

Westbrook, Andrew andrew.westbrook at brown.edu
Sat Dec 31 12:20:51 CET 2022


I am attempting to export my TMS Optimization results (estimated via the
ADM method) to a Brainsight-readable .xml file, but I am getting the
following error when I try to execute brainsight().write(opt_mat, fn)

[ simnibs ]CRITICAL: Uncaught exception

AssertionError: Expecting array with shape (4, 4, N instrument marker).

As you can see in the attached python script, I am using a standard set of
arguments to set up my optimization routine, so I don't know why the export
function isn't working. Would you please help me address this issue?

Note that the optimization itself appears to execute without error. Also,
FWIW, I am running on Mac OS Big Sur 11.7, and I just installed my version
of SimNIBS yesterday.

Thank you,

Andrew Westbrook

Post-Doctoral Research Associate
Department of Cognitive, Linguistics, and Psychological Sciences
Brown University
190 Thayer Street
Providence, RI 02912
Cell: +1-919-360-5399
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.drcmr.dk/pipermail/simnibs-discuss/attachments/20221231/1a5f7f06/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: expSimNIBStoBrainsight.py
Type: text/x-python-script
Size: 1207 bytes
Desc: not available
URL: <https://mailman.drcmr.dk/pipermail/simnibs-discuss/attachments/20221231/1a5f7f06/attachment-0001.bin>

More information about the Simnibs-discuss mailing list