Skip to content
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

BUG: plot topographies #46

Open
kingjr opened this issue Nov 4, 2016 · 4 comments
Open

BUG: plot topographies #46

kingjr opened this issue Nov 4, 2016 · 4 comments

Comments

@kingjr
Copy link
Member

kingjr commented Nov 4, 2016

Even if I apply the channel preprocessing hcp.preprocessing.map_ch_coords_to_mne(inst), some plotting functions crash into an unclear error if data channels aren't picked (i.e. inst.pick_types(mag='meg')):

import numpy as np
import hcp
import mne
raw = hcp.read_raw(run_index=1,
                   hcp_path='/home/jrking/Desktop/hcp',
                   subject='105923',
                   data_type='task_story_math')
epochs = mne.Epochs(raw, np.array([[0, 0, 1]]), tmin=0., tmax=2.000)
evoked = epochs.average()
hcp.preprocessing.map_ch_coords_to_mne(evoked)
evoked.plot_joint()  # crash
evoked.pick_types(meg='mag')
evoked.plot_joint()  # ok
@dengemann
Copy link
Member

Thanks for reporting I'll be back on mne-hcp soon.
Yes joint plot has a problem and it's partly due to mne. You may also need
the hcp variant of the layout, see helper in hcp.viz
On Fri, 4 Nov 2016 at 17:07, Jean-Rémi KING notifications@github.com
wrote:

Even if I apply the channel preprocessing
hcp.preprocessing.map_ch_coords_to_mne(inst), some plotting functions
crash into an unclear error if data channels aren't picked (i.e.
inst.pick_types(mag='meg')):

import numpy as npimport hcpimport mne
raw = hcp.read_raw(run_index=1,
hcp_path='/home/jrking/Desktop/hcp',
subject='105923',
data_type='task_story_math')
epochs = mne.Epochs(raw, np.array([[0, 0, 1]]), tmin=0., tmax=2.000)
evoked = epochs.average()
hcp.preprocessing.map_ch_coords_to_mne(evoked)
evoked.plot_joint() # crash
evoked.pick_types(meg='mag')
evoked.plot_joint() # ok


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#46, or mute the thread
https://github.com/notifications/unsubscribe-auth/AB0fipNvbEbI8p3I1orcjN8-15DwJ9VIks5q62ZrgaJpZM4Kpxnc
.

@kingjr
Copy link
Member Author

kingjr commented Nov 4, 2016

ok. cc @jona-sassenhagen in case you want to give it a look

@dengemann
Copy link
Member

I think its known we had an issue somewhere
On Fri, 4 Nov 2016 at 17:40, Jean-Rémi KING notifications@github.com
wrote:

ok. cc @jona-sassenhagen https://github.com/jona-sassenhagen in case
you want to give it a look


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#46 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB0fintFrsJw8aP4ecnF1fjHRXPxKc--ks5q624BgaJpZM4Kpxnc
.

@dengemann
Copy link
Member

It may be a dupe, would be good to check
On Fri, 4 Nov 2016 at 17:41, Denis-Alexander Engemann <
denis.engemann@gmail.com> wrote:

I think its known we had an issue somewhere
On Fri, 4 Nov 2016 at 17:40, Jean-Rémi KING notifications@github.com
wrote:

ok. cc @jona-sassenhagen https://github.com/jona-sassenhagen in case
you want to give it a look


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#46 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB0fintFrsJw8aP4ecnF1fjHRXPxKc--ks5q624BgaJpZM4Kpxnc
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants