<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Gülce,</p>
<p>Could you share your script so we can have a look? The
len(elec.plug) probably refers to the number of plugs on an
electrode, so maybe you're trying to put multiple plugs on the
same electrode.</p>
<p>Best,<br>
Oula</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 11/3/22 11:16, Gülce Lale wrote:<br>
</div>
<blockquote type="cite"
cite="mid:80FF338F-22B4-48D5-8F19-798FCAF8C8B2@campus.lmu.de">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
I have a question about scripting simulation with python which can
also be beneficial for others. Could you share it in the mailing
list? Thank you.
<div class=""><br class="">
</div>
<div class="">I am currently working on a project where I have to
simulate our tDCS with python in SimNIBS. I am trying to write a
script, where I give the electrode coordinates, dimensions, and
other parameters within the script. In addition to the
electrode, I have to model the connector (the plug). </div>
<div class="">The anode is 5x5 and its connector has a height of
2.3 and width of 1.3. Whereas, the cathode is 4x4 and the
connector has the same height and width. I calculated the plug
dimensions and the distance from the centre of the electrode,
however, when I try to model it in SimNIBS I have 2 problems:</div>
<div class=""><br class="">
</div>
<div class="">1. Since I have both a cathode and an anode, I have
to simulate 2 plugs. However, when I try to simulate them I got
this following error for the second electrode’s
plug: NotImplementedError in the function put_electrode_on_mesh.
Which tells me that the length of the plug shouldn’t be greater
than 1 (len(elec.plug)<1).</div>
<div class="">2. I tried to simulate only one electrode with a
plug, and simulated the other electrode without a plug. Then, I
noticed that the plug isn’t being simulated at all. Or, I can
not see it on the SimNIBS pop up screen which opens after
running my simulation script. </div>
<div class=""><br class="">
</div>
<div class="">I wanted to ask if anyone simulated the
connector(plug) of the electrode before, and by any chance has a
solution to my problem.</div>
<div class=""><br class="">
</div>
<div class="">Thank you for your answers in advance.</div>
<div class="">Best,</div>
<div class="">Gülce</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: "Helvetica Neue";"
class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: "Helvetica Neue";"
class=""><br class="">
</div>
</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>
</body>
</html>