<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p>Ok thanks!<br><br><div dir="ltr">Skickat från min iPhone</div><div dir="ltr"><br><blockquote type="cite">7 maj 2021 kl. 13:46 skrev Alexandre Gramfort &lt;alexandre.gramfort@inria.fr&gt;:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div dir="ltr">yes it's like this<div><br></div><div>Alex</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 7, 2021 at 11:49 AM Karin Westin &lt;<a href="mailto:karin.westin85@gmail.com" target="_blank">karin.westin85@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p><span style="padding:3px 10px;border-radius:5px;color:rgb(255,255,255);font-weight:bold;display:inline-block;background-color:rgb(255,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div dir="ltr"><div>Just one follow up question... how is the free orientation forward matrix arranged, ie do columns 1-3 include three orientations for dipole 1, 2-6 for dipole 2 and so on? <br></div><div><br></div><div>Karin<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den tors 6 maj 2021 kl 13:17 skrev Eric Larson &lt;<a href="mailto:larson.eric.d@gmail.com" target="_blank">larson.eric.d@gmail.com</a>&gt;:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p><span style="padding:3px 10px;border-radius:5px;color:rgb(255,255,255);font-weight:bold;display:inline-block;background-color:rgb(255,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div dir="ltr">The forward is free orientation, i.e., 3 directions per location. 16382 * 2 * 3 = 98292.<div><br></div><div>I'm guessing you actually have (98292 - 98268) / 3 = 8 fewer locations in the left hemisphere (i.e.,&nbsp;16374) than in the right (16382)?</div><div><br></div><div>Eric</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 6, 2021 at 6:05 AM Karin Westin &lt;<a href="mailto:karin.westin85@gmail.com" target="_blank">karin.westin85@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><p><span style="padding:3px 10px;border-radius:5px;color:rgb(255,255,255);font-weight:bold;display:inline-block;background-color:rgb(255,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p>But 16382 dipoles per hemisphere don’t add up to the 98267 dipoles of the forward matrix?<br><br><div dir="ltr">Skickat från min iPhone</div><div dir="ltr"><br><blockquote type="cite">6 maj 2021 kl. 10:58 skrev Karin Westin &lt;<a href="mailto:karin.westin85@gmail.com" target="_blank">karin.westin85@gmail.com</a>&gt;:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>Thank you for your answer!<br></div><div><br></div><div>But from that I get <br></div><div>&nbsp;np.shape(right_coords)&nbsp; (16382, 3) and <br></div><div>np.shape(fwd['sol']['data'])&nbsp; (130, 98268) <br></div><div><br></div><div>so I still don't understand how to extract coordinates of dipole in column j of fwd['sol']['data']?</div><div><br></div><div>Thanks in advance,</div><div>Karin<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den tors 6 maj 2021 kl 07:54 skrev VERRIER Clement &lt;<a href="mailto:clement.VERRIER@univ-amu.fr" target="_blank">clement.VERRIER@univ-amu.fr</a>&gt;:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div><p><span style="padding:3px 10px;border-radius:5px;color:rgb(255,255,255);font-weight:bold;display:inline-block;background-color:rgb(255,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p>
Hello,
<div>
<div><br>
</div>
<div>You should be able to extract the dipoles coordinates of each hemisphere using the following (works with version 0.22.1):</div>
<div><br>
</div>
<div>&gt;&gt;&gt; left_hemi, right_hemi = fwd["src"]</div>
<div>&gt;&gt;&gt; left_coords, right_coords = [hemi["rr"][hemi["vertno"]] for hemi in [left_hemi, right_hemi]]</div>
<div><br>
</div>
<div>If you want all coordinates (i.e. those associated with the nondecimated mesh), you just have to use remove the extra
<span style="color:rgb(0,0,0)">hemi["vertno"]</span>&nbsp;slicing.</div>
<div><br>
</div>
<div>Hope it helps!</div>
<div><br>
</div>
<div>Best,</div>
<div>Clément</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On 6 May 2021, at 12:54 AM, Karin Westin &lt;<a href="mailto:karin.westin85@gmail.com" target="_blank">karin.westin85@gmail.com</a>&gt; wrote:</div>
<br>
<div>
<p><span style="padding:3px 10px;border-radius:5px;color:rgb(255,255,255);font-weight:bold;display:inline-block;background-color:rgb(255,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<div><br>
</div>
<div dir="ltr">
<div>Hi all!</div>
<div><br>
</div>
<div>As I understood it, the matrix fwd['sol']['data'] represents sensors x dipoles. How can one extract the coordinates of these dipoles?</div>
<div><br>
</div>
<div>Thanks in advance,</div>
<div>Karin<br>
</div>
</div>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://secure-web.cisco.com/1ZxBopMXFtg6jO_yys0ksvIolWe3JiNBFr7yPVdfXPr9epcMw83qnKUNQX30-OUMQHVKAFdslBnXOCBaZnGGuH7S0mtP6Ixk0f4dY-C6o1Ul6kVaz6xNw0_pznqFGu7y3OIfBfIdbNVgm4SXHUtwxg2OmWzvBSAz55vC88vlanHOWLVXrO-Wxxzt7-BN7NuHaPW2Iidy-X1dK6OGZVnRrIgIhrsdv9bfO5Qe2T8ZN8Pl_1hCsuYeN7qbldrXWu1dn1R0iQfXYcMcRTuYqyNxFCA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis" target="_blank"><font color="red"><b>MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be</b></font> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>

_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://secure-web.cisco.com/1ZxBopMXFtg6jO_yys0ksvIolWe3JiNBFr7yPVdfXPr9epcMw83qnKUNQX30-OUMQHVKAFdslBnXOCBaZnGGuH7S0mtP6Ixk0f4dY-C6o1Ul6kVaz6xNw0_pznqFGu7y3OIfBfIdbNVgm4SXHUtwxg2OmWzvBSAz55vC88vlanHOWLVXrO-Wxxzt7-BN7NuHaPW2Iidy-X1dK6OGZVnRrIgIhrsdv9bfO5Qe2T8ZN8Pl_1hCsuYeN7qbldrXWu1dn1R0iQfXYcMcRTuYqyNxFCA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis" rel="noreferrer" target="_blank"><font color="red"><b>MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be</b></font> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></blockquote></div>
</div></blockquote></div>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://secure-web.cisco.com/1hHzw8B4tQNUb3NUXjiAgddndJqFpFQ4VA2jn3SK9pxQEFMi_oZTGke5TR7YpYk3zug45IVxWWC1dcmAORj6cQs0KJTALbriSvfAciClwaY_kDy2AfjGq6Odz5k0RrJNJsrJJsQ6fM_rEQu5qHtCiaWiwZ3m_dcEptbZxetEASJXv3I8M0NRB64Gty3X4f2iADKbOO4qstektvjhecW9OK558sSKi_jCXsSZ7fVvLXzZv5Sk9eqlWnrleRKFcGvDnGlT-B-kOkvGDSA0ux-gucQ/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis" rel="noreferrer" target="_blank"><font color="red"><b>MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be</b></font> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></blockquote></div>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://secure-web.cisco.com/1ASJnufuunbZUGuBaO3mZSQ_mgqUN0VadBZmLyFssEcV-EOzfpyNPhjqUXpiyqG0NcX2I5JD9_vOLlDrZql4Ios7VHsduyglPtbm0E_VUKrqu5aKM8xHDVLDyMNxPsU_ToSvc4qSO1BDsMeXt_KRbUsh0xyEznI9yO-uqRK5D6udxV0pHo8JcaI-g8kp-uVnOa8LxD-mYXVOOhR0e1SZzygmj22kJV9X7EpVmZn-NNUyRvJ-fQVyQRkZiNjXyhu5A4Pbu9j7qwGRNDEqbPgSysA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis" rel="noreferrer" target="_blank"><font color="red"><b>MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be</b></font> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></blockquote></div>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://secure-web.cisco.com/1uEKjUf8nFlePWE9RUrx8v6DMOoq3gIwKHTBlK72U4Axros0WfH9zAhRm11hFR4EWN5P9_isUcmXCg7h5rMGjeJc5yq4Kx4UPzKDJZUW2nqrNK0lFWLc92RAzeD140oJ5B4nXvZ52webyjA4WYnwCRPCLA7IulhUpQkE2ADyPMO7tLgIVjyX55qjRLyw0FgxmfQUc70VaQ7sMGw_64QLoyVfFx_X7R0CrZxZpCh5dL77tfR3v-s3x7Gm48Kx_MeC74Jr53krXW2peyRUf3CvbCA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis" rel="noreferrer" target="_blank"><font color="red"><b>MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be</b></font> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></blockquote></div>
<span>_______________________________________________</span><br><span>Mne_analysis mailing list</span><br><span>Mne_analysis@nmr.mgh.harvard.edu</span><br><span>https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</span></div></blockquote></body></html>