<p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;"> External Email - Use Caution </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('oct6'). I can compute the resolution matrix but it doesn'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 <<a href="mailto:alexandre.gramfort@inria.fr">alexandre.gramfort@inria.fr</a>> 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 <<a href="mailto:bmedasdiptyajit@gmail.com" target="_blank">bmedasdiptyajit@gmail.com</a>> wrote:<br>
><br>
> External Email - Use Caution<br>
><br>
> Dear MNE users,<br>
><br>
> I am trying to do something similar that has been done in this example:<br>
> <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>
><br>
> 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>
><br>
> Best,<br>
> Dip<br>
><br>
> Error:<br>
> Traceback (most recent call last):<br>
> File "/media/diptyajit/Elements/Pycharm_Aud_Cog/plot_psf_ctf_vertices.py", line 53, in <module><br>
> snr = 3.0<br>
> File "<decorator-gen-313>", line 21, in make_inverse_resolution_matrix<br>
> File "/home/diptyajit/anaconda3/lib/python3.7/site-packages/mne/minimum_norm/resolution_matrix.py", line 60, in make_inverse_resolution_matrix<br>
> resmat = invmat.dot(leadfield)<br>
> MemoryError: Unable to allocate array with shape (56310, 56310) and data type float64<br>
><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>
<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>