New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MRG, VIZ, FIX: sEEG picking in _prepare_topomap_plot() #8736
Conversation
All green, ready for review/merge. |
Great! |
given the extrapolation artifacts wouldn't it make sense to restrict the topomap to the convex hull of the sensors? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
And yes in the example something like extrapolate='local'
(I think this is what does the convex + padding?) would look better
mne/viz/tests/test_topo.py
Outdated
with warnings.catch_warnings(): # unit has changed from T/m to V | ||
warnings.simplefilter('ignore') | ||
evoked.set_channel_types(mapping) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typically with these we just do:
with warnings.catch_warnings(): # unit has changed from T/m to V | |
warnings.simplefilter('ignore') | |
evoked.set_channel_types(mapping) | |
with pytest.warns(RuntimeWarning, match='unit changed') | |
evoked.set_channel_types(mapping) |
Does the same (plus a bit more, checking that we got the expected one) with fewer lines/imports
Here's what the sample code from #8733 generates now: |
I find it better
…On Wed, Jan 13, 2021 at 6:13 PM Daniel McCloy ***@***.***> wrote:
Here's what the sample code from #8733
<#8733> generates now:
[image: Figure_1]
<https://user-images.githubusercontent.com/1810515/104485615-5aaef880-5590-11eb-85cf-f49ecec37bfe.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#8736 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABHKHABCFYGFEISWBIMEGDSZXIETANCNFSM4V7RC6GQ>
.
|
Late to the party, does You need proper support for sEEG and a separate function altogether. Each "stick" plotted in a separate subplot. |
Even if suboptimal I think it should work. We can create other optimized functions for sEEG visualization that people can can prefer as well, but I don't see a good reason to raise an error here. |
This sample data is not very good for many reasons, like the experimental paradigm is not good enough. So it is normal to see nothing useful, but to sEEG, it is useful if the experimental paradigm is good. |
@BarryLiu97 do you have a screenshot or a figure from a publication to share which shows how topoplots are used in sEEG data analysis? |
Sadly, I haven't seen any publication using figures like plot_evoke_joint. But in sEEG, it may make sense if using brain regions as the standard to separate the subplots for the most important feature of sEEG is the ability to get the deep brain structures' information. |
Thanks for the fixes @drammock ! |
* fix seeg pick in _prepare_topomap_plot() * add test * modernize adjacent test * update what's new * simplify test * use local extrapolation for sEEG
* upstream/master: (66 commits) MRG, ENH: Add infant template downloader (mne-tools#8738) ENH: add reader for NeuroElectrics .nedf files (mne-tools#8734) DOC: improve glossary entry about fiducials (mne-tools#8763) MRG, ENH: Add Report.add_custom_css (mne-tools#8762) BUG, DOC: read_raw_egi didn't support pathlib.Path; update read_raw() docstring (mne-tools#8759) Add "dbs" as new channel type (mne-tools#8739) MRG, VIZ: Fix title position in plot_sensors (mne-tools#8752) MRG: Support for non-FIFF files in Report.parse_folder (mne-tools#8744) MRG, VIZ, FIX: sEEG picking in _prepare_topomap_plot() (mne-tools#8736) DOC: don't use single letter variable name in _compute_forward (mne-tools#8727) WIP: Fix search [skip github] [skip azp] (mne-tools#8742) WIP: Compare Beer-lambert to HOMER (mne-tools#8711) MRG: bump spyder version (mne-tools#8020) FIX anon with IO round trip (mne-tools#8731) fix set_bipolar_reference for Epochs (mne-tools#8728) WIP: Add width argument, reduce default (mne-tools#8725) ENH: Add toggle-all button to Report (mne-tools#8723) fix int/float conversion in nicolet header (mne-tools#8712) MRG, BUG: Fix Report.add_bem_to_section n_jobs != 1 (mne-tools#8713) MRG, DOC: Make "rank" options in docs more accessible (mne-tools#8707) ...
closes #8733
Not sure if this is a reasonable fix since I've never personally worked with sEEG, but based on general knowledge I'm assuming there's nothing special needed as far as combining sensor pairs? Can someone confirm?
cc @BarryLiu97. On this branch using your code from #8733 I get this figure: