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

FIX: helmet #10203

Merged
merged 1 commit into from
Jan 14, 2022
Merged

FIX: helmet #10203

merged 1 commit into from
Jan 14, 2022

Conversation

GuillaumeFavelier
Copy link
Contributor

This PR fixes the bug introduced in #10200

main PR
image image
import os.path as op
import mne
from mne.io import read_info


data_path = mne.datasets.sample.data_path()
subjects_dir = op.join(data_path, 'subjects')
subject = 'sample'

fname_raw = op.join(data_path, 'MEG', subject, subject + '_audvis_raw.fif')
fname_trans = op.join(data_path, 'MEG', subject, f'{subject}_audvis_raw-trans.fif')

trans = mne.read_trans(fname_trans)
info = read_info(fname_raw)

mne.viz.plot_alignment(
    info=info,
    trans=trans,
    subject='sample',
    subjects_dir=subjects_dir,
    coord_frame='meg'
)

Copy link
Member

@hoechenberger hoechenberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thank you!

@hoechenberger hoechenberger merged commit f90b303 into mne-tools:main Jan 14, 2022
@GuillaumeFavelier GuillaumeFavelier deleted the fix/helmet branch January 17, 2022 16:32
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

Successfully merging this pull request may close these issues.

2 participants