<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Dear Yihong,</p>
    <p>this error only exists in older simnibs versions prior to version
      4. Please make sure you have the latest version installed, and
      that the paths are set to the latest version. You can test by
      opening a cmd or shell window and typing</p>
    <p>charm</p>
    <p>If that isn't found, please check your path settings. When you
      have head models created with simnibs 3 which you want to go on
      using, please use the command convert_3_to_4 before using these
      headmodels in simnibs 4.<br>
    </p>
    <p>Best regards,</p>
    <p>Axel</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 12-12-2022 14:47, Sheng Yihong
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:GV1P193MB2135747CC47747F94F15A701F4E29@GV1P193MB2135.EURP193.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:DengXian;}pre
        {mso-style-priority:99;
        mso-style-link:"HTML \9884\8BBE\683C\5F0F \5B57\7B26";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun;}span.HTML
        {mso-style-name:"HTML \9884\8BBE\683C\5F0F \5B57\7B26";
        mso-style-priority:99;
        mso-style-link:"HTML \9884\8BBE\683C\5F0F";
        font-family:SimSun;}span.ansi-red-intense-fg
        {mso-style-name:ansi-red-intense-fg;}.MsoChpDefault
        {mso-style-type:export-only;}div.WordSection1
        {page:WordSection1;}</style>
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US">Dear SimNIBS</span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">When I try to follow the
            tutorial to get a Leadfield on SimNIBS 4.0 TDCS
            optimization, I got a OSError.</span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <div>
          <pre style="background:white;vertical-align:baseline;word-break:break-all"><span class="ansi-red-intense-fg"><b><span style="font-size:10.5pt;font-family:"Courier New";color:#B22B31" lang="EN-US">OSError</span></b></span><span style="font-size:10.5pt;font-family:"Courier New";color:black" lang="EN-US">: Could not find surface files in m2m folder. SPM-only segmentation?<o:p></o:p></span></pre>
        </div>
        <p class="MsoNormal"><span style="font-size:12.0pt" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:12.0pt" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:12.0pt" lang="EN-US">After
            I check the transformation.py I find the problem caused by
            segmentation type. But in the changelog4.0 Headreco and
            mri2mesh are deprecated. So I have no idea to solve the
            OSError.
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:12.0pt" lang="EN-US">Could
            you help me to figure my problem out?
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:12.0pt" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:12.0pt" lang="EN-US">Best
            wishes<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:12.0pt" lang="EN-US">Yihong<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:SimSun" lang="EN-US"><o:p> </o:p></span></p>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Simnibs-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Simnibs-discuss@drcmr.dk">Simnibs-discuss@drcmr.dk</a>
<a class="moz-txt-link-freetext" href="https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss">https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Dr. Axel Thielscher
Professor of Neurophysics and Neuroimaging
Danish Research Center for Magnetic Resonance
Copenhagen University Hospital Hvidovre
DK-2650 Hvidovre, Denmark
<a class="moz-txt-link-abbreviated" href="http://www.drcmr.dk">www.drcmr.dk</a>
&
Department of Health Technology
Technical University of Denmark
DK-2800 Kgs. Lyngby
<a class="moz-txt-link-freetext" href="http://www.healthtech.dtu.dk/">http://www.healthtech.dtu.dk/</a></pre>
  </body>
</html>