Skip to content

MRG, ENH: Add example of how to deal with EEG in MRI voxels - #6894

Merged
drammock merged 3 commits into
mne-tools:masterfrom
larsoner:eeg-mri
Oct 7, 2019
Merged

drammock merged 3 commits into
mne-tools:masterfrom
larsoner:eeg-mri

Conversation

@larsoner

@larsoner larsoner commented Oct 3, 2019 •

Copy link
Copy Markdown
Member

Closes #3877.

Example is a bit complicated because we have to fake the dataset using sample.

@codecov

codecov Bot commented Oct 3, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #6894 into master will decrease coverage by <.01%.
The diff coverage is 81.81%.

@@            Coverage Diff             @@
##           master    #6894      +/-   ##
==========================================
- Coverage   89.66%   89.66%   -0.01%     
==========================================
  Files         429      429              
  Lines       76564    76578      +14     
  Branches    12480    12483       +3     
==========================================
+ Hits        68653    68665      +12     
- Misses       5118     5119       +1     
- Partials     2793     2794       +1

@larsoner larsoner changed the title ENH: Add example of how to deal with EEG in MRI voxels MRG, ENH: Add example of how to deal with EEG in MRI voxels Oct 4, 2019
@larsoner

larsoner commented Oct 6, 2019

Copy link
Copy Markdown
Member Author

This one is also ready

raw.info['dig'] = []
for ch in raw.info['chs']:
ch['loc'].fill(0.)
del head_to_vox, trans

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am not super happy about exposing such complex / low level code. Can we have an alternative?

@agramfort agramfort left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice job @larsoner !

@larsoner

larsoner commented Oct 7, 2019

Copy link
Copy Markdown
Member Author

@drammock feel free to merge if you're happy, leave comments, or push commits

@drammock
drammock merged commit e86d78d into mne-tools:master Oct 7, 2019
@drammock

drammock commented Oct 7, 2019

Copy link
Copy Markdown
Member

I went ahead and merged without the CIs because my commit was a one-character change :)

@larsoner
larsoner deleted the eeg-mri branch April 2, 2020 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

computing forward model using EEG electrode coords MRI voxel space?

3 participants