<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Does MNE has an utility to create the forward object (as delivered by mne.read_forward_solution, for example) when I have all the information regarding lead field matrix, dipole positions etc...)</div></div></blockquote><div><br></div><div>The Forward object is a thin wrapper around the standard Python dict:</div><div><br></div><div><a href="https://github.com/mne-tools/mne-python/blob/master/mne/forward/forward.py#L47">https://github.com/mne-tools/mne-python/blob/master/mne/forward/forward.py#L47</a></div><div><br></div><div>In this sense, you can just create and populate the Forward object in the same way as a dict.</div><div><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="ltr"><div>or I have to have to create this object by hand? (which would be rather inconvenient, since it seems to be a huge object)</div></div></blockquote><div><br></div><div>Yep, you&#39;ll need to do it by hand. Because the Forward class is so simple, there probably isn&#39;t a great way to simplify this process, beyond providing documentation. The variables in the Forward class are all there for either inversion on bookkeeping.</div><div><br></div><div>Can you look through the docs, and if you don&#39;t see what you need, open an MNE issue? We can improve the documentation for what all the variables mean as we go.</div><div><br></div><div>At some point we could also <a href="https://github.com/mne-tools/mne-python/issues/1624">try to add support for OpenMEEG</a>, which would give you more options for forward models, too.</div><div><br></div><div>Eric</div><div><br></div></div></div></div>