<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="auto">This sounds right.<div dir="auto"><br></div><div dir="auto">We could try to infer the subject (it might be in the BEM somewhere), but then we still wouldn&#39;t know subjects_dir. Maybe we should add a warning saying that no MRI was provided and this the source space will be discrete, since it seems rare that you&#39;d want to use a BEM, spacing as a float (i.e., grid), but have no MRI associated with it.</div><div dir="auto"><br></div><div dir="auto">Eric</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 27, 2019, 08:27 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
<br>
I looked into the issue. The problem is following:<br>
<br>
src = mne.setup_volume_source_space(bem=bem)<br>
<br>
returns a discrete source space as it does not know what subject to<br>
which the bem corresponds to.<br>
Basically it does not know where to get the MRI from.<br>
<br>
to fix your problem you should use:<br>
<br>
src = mne.setup_volume_source_space(bem=bem, subject=&#39;sample&#39;,<br>
subjects_dir=subjects_dir)<br>
<br>
I agree that this is confusing as you needed to pass subject and<br>
subjects_dir in mne.make_bem_model<br>
to technically you provided this information.<br>
<br>
Eric what do you think?<br>
<br>
Alex<br>
<br>
On Wed, Dec 25, 2019 at 11:46 AM Alexandre Gramfort<br>
&lt;<a href="mailto:alexandre.gramfort@inria.fr" target="_blank" rel="noreferrer">alexandre.gramfort@inria.fr</a>&gt; wrote:<br>
&gt;<br>
&gt; hi,<br>
&gt;<br>
&gt; I can replicate the pb. There is a bug in setup_volume_source_space<br>
&gt;<br>
&gt; this:<br>
&gt; src = mne.setup_volume_source_space(bem=bem)<br>
&gt;<br>
&gt; returns a discrete source space which is not expected. It should be a volume<br>
&gt; source space.<br>
&gt;<br>
&gt; can you open an issue on github?<br>
&gt;<br>
&gt; thanks<br>
&gt;<br>
&gt; Alex<br>
</blockquote></div>