<div dir="ltr"><div>Hello, </div><div><br></div><div>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 <font color="#cc0000">brainsight().write(opt_mat, fn)</font></div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">[ simnibs ]CRITICAL: Uncaught exception</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">AssertionError: Expecting array with shape (4, 4, N instrument marker).</span></p><div><br></div><div>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?</div><div><br></div><div>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.</div><div><br></div><div>Thank you,<br>Andrew</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:small">Andrew Westbrook</div><div style="font-size:small"><br></div><div style="font-size:small">Post-Doctoral Research Associate</div><div style="font-size:small">Department of Cognitive, Linguistics, and Psychological Sciences</div><div style="font-size:small">Brown University<br></div><div style="font-size:small">190 Thayer Street</div><div style="font-size:small"><div>Providence, RI 02912</div></div><div style="font-size:small">Cell: +1-919-360-5399<br><br></div></div></div></div></div></div></div></div>