<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="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'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'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 <<a href="mailto:alexandre.gramfort@inria.fr">alexandre.gramfort@inria.fr</a>> 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='sample',<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>
<<a href="mailto:alexandre.gramfort@inria.fr" target="_blank" rel="noreferrer">alexandre.gramfort@inria.fr</a>> wrote:<br>
><br>
> hi,<br>
><br>
> I can replicate the pb. There is a bug in setup_volume_source_space<br>
><br>
> this:<br>
> src = mne.setup_volume_source_space(bem=bem)<br>
><br>
> returns a discrete source space which is not expected. It should be a volume<br>
> source space.<br>
><br>
> can you open an issue on github?<br>
><br>
> thanks<br>
><br>
> Alex<br>
</blockquote></div>