<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"><div>Hi alex,</div><div><br></div><div>Thanks for the suggestions. I tried with reduced source space(&#39;oct6&#39;). I can compute the resolution matrix but it doesn&#39;t match the size of the no. of vertices of the original source space. Therefore, I am getting an error while saving it as source estimate object .    </div><div>Details:</div><div>original source space: 7503 locations (3 dipoles per each location)<br></div><div>Dimension of Inverse Matrix: (22509, 187) <br></div><div>Dimensions of resolution matrix: 22509 by 22509.</div><div>ValueError: Number of vertices (7503) and stc.shape[0] (22509) must match</div><div><br></div><div>However, I am expecting a resolution matrix with size of 7503*7503. Is the resolution matrix being calculated each dipole location instead of taking of normal of 3 components?? Any idea?</div><div><br></div><div>best,</div><div>Dip<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 25, 2020 at 10:51 PM Alexandre Gramfort &lt;<a href="mailto:alexandre.gramfort@inria.fr">alexandre.gramfort@inria.fr</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">        External Email - Use Caution        <br>
<br>
hi,<br>
<br>
try reducing the size of your source space or find a machine with more RAM.<br>
It seems you need at least 25GB here.<br>
<br>
HTH<br>
Alex<br>
<br>
On Thu, Jun 25, 2020 at 9:04 PM Diptyajit Das &lt;<a href="mailto:bmedasdiptyajit@gmail.com" target="_blank">bmedasdiptyajit@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;         External Email - Use Caution<br>
&gt;<br>
&gt; Dear MNE users,<br>
&gt;<br>
&gt; I am trying to do something similar that has been done in this example:<br>
&gt; <a href="https://mne.tools/stable/auto_examples/inverse/plot_psf_ctf_vertices.html#sphx-glr-auto-examples-inverse-plot-psf-ctf-vertices-py" rel="noreferrer" target="_blank">https://mne.tools/stable/auto_examples/inverse/plot_psf_ctf_vertices.html#sphx-glr-auto-examples-inverse-plot-psf-ctf-vertices-py</a><br>
&gt;<br>
&gt; Except, I would like to compute my forward and Inverse operator with free orientation instead of being fixed or perpendicular to the cortical surface. However, I am getting this following error once I try to compute it. Is there any workaround to skip this memory error??<br>
&gt;<br>
&gt; Best,<br>
&gt; Dip<br>
&gt;<br>
&gt; Error:<br>
&gt; Traceback (most recent call last):<br>
&gt;   File &quot;/media/diptyajit/Elements/Pycharm_Aud_Cog/plot_psf_ctf_vertices.py&quot;, line 53, in &lt;module&gt;<br>
&gt;     snr = 3.0<br>
&gt;   File &quot;&lt;decorator-gen-313&gt;&quot;, line 21, in make_inverse_resolution_matrix<br>
&gt;   File &quot;/home/diptyajit/anaconda3/lib/python3.7/site-packages/mne/minimum_norm/resolution_matrix.py&quot;, line 60, in make_inverse_resolution_matrix<br>
&gt;     resmat = invmat.dot(leadfield)<br>
&gt; MemoryError: Unable to allocate array with shape (56310, 56310) and data type float64<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
_______________________________________________<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://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
</blockquote></div>