Closed georgekenefati closed 1 year ago
Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴
I haven't tested the code but it looks okay, so if there is an error then we do probably have some bug. Hopefully someone can take a look soon!
@wmvanvliet or @britta-wstnr do you have time to look?
Hey - sorry this week is a sea of deadlines for me, but I will put it on my agenda for next week (unless @wmvanvliet beats me to it!) 📆
Managed to check this out - note that you are using a volume forward model. The code runs fine for me with a surface model (sample_audvis-meg-oct-6-fwd.fif
).
We might want to throw a better error message though, WDYT @larsoner ? right now it crashes with TypeError: cannot unpack non-iterable Exception object
.
Sounds like we need to fix the exception handling (that unpacking error suggests we're doing something wrong) and indeed add an error message if a label is requested for a volume source space
Hi Britta and team,
Thank you for getting to the bottom of it!
I used a volume forward model based on the recommendation from the LCMV tutorial. Assuming I keep the volume forward model, could I compute the STC with LCMV for the entire brain first, and then extract the data for just one label then? Or is that still exclusive to the surface model,
Thanks again, George On Jun 2, 2023 at 7:54 AM -0400, Britta Westner @.***>, wrote:
Managed to check this out - note that you are using a volume forward model. The code runs fine for me with a surface model (sample_audvis-meg-oct-6-fwd.fif). We might want to throw a better error message though, WDYT @larsoner ? right now it crashes with TypeError: cannot unpack non-iterable Exception object. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
extract_label_time_course can work with volume atlases, so maybe you can calculate LCMV for the whole brain and then extract that way
mne.beamformer.make_lcmv
works without any label chosen but crashes when a Label instance is chosen with thelabel=
argument.Please help! Thank you :slight_smile:
OS details: MNE version: 1.3.0 operating system: Ubuntu 20.04
Minimally reproducible example: