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

MNE Report: plot source space(s) #12836

Open
vferat opened this issue Sep 9, 2024 · 1 comment · May be fixed by #12848
Open

MNE Report: plot source space(s) #12836

vferat opened this issue Sep 9, 2024 · 1 comment · May be fixed by #12848
Labels

Comments

@vferat
Copy link
Contributor

vferat commented Sep 9, 2024

Describe the new feature or enhancement

To my knowledge, there is no way to display source space(s) in the MNE Report.
I would be nice to be able to quickly visualize the source space distribution, especially when working with automated tools such a MNE-BIDS-Pipeline.

Describe your proposed implementation

A src parameter could be added to the report.add_bem method in order to visualize a source space ( very few changes)

src_fname = r"C:\Users\victor.ferat\mne_data\MNE-testing-data\subjects\sample\bem\sample-fsaverage-ico-5-src.fif"
src = mne.read_source_spaces(src_fname)

report = Report(
    subjects_dir=subjects_dir,
    projs=False,
    image_format="png",
)
report.add_bem(subject='sample', title='BEM with src', src=src)

image

Describe possible alternatives

Source space data might also be extracted from the forward instance and therefore be added in the using the Report.add_forward method instead.

We could also create a dedicated add_src method.

Additional context

No response

@vferat vferat added the ENH label Sep 9, 2024
@larsoner
Copy link
Member

Agreed I think it would be cool to support it in add_bem!

@vferat vferat linked a pull request Sep 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants