Repository navigation
MRG: Add projection to surface for coreg - #4937
Conversation
|
I’m at ARO so it will take me a few days but when I’m back at my desk I will look at it. I can’t find the button on the screen shot :) is it hidden when it does not apply?
… On Feb 13, 2018, at 11:54 AM, Eric Larson ***@***.***> wrote:
This PR:
Adds a button to project EEG electrodes to the scalp in mne coreg.
Fixes a bug where --low-res-head didn't always use a low res head (fixed by first looking for outer_skin.surf if it exists; subject-head.fif is now second, as it can be a dense head).
Adds support for normals when surfaces are loaded, enabling hair growing with e.g. outer_skin.surf files.
Adds support for ~ in the --subjects-dir and --trans paths using expanduser.
@christianbrodbeck do you have time to look and try? Example that shows all of these changes at once:
mne coreg --subjects-dir=~/mne_data/MNE-sample-data/subjects -f ~/mne_data/MNE-sample-data/MEG/sample/sample_audvis_raw.fif --no-guess-mri -s sample --low-res-head --project-eeg
Closes #3700.
You can view, comment on, or merge this pull request online at:
#4937
Commit Summary
ENH: Add projection to surface for coreg
File Changes
M doc/whats_new.rst (2)
M mne/commands/mne_coreg.py (23)
M mne/coreg.py (4)
M mne/gui/__init__.py (11)
M mne/gui/_coreg_gui.py (13)
M mne/gui/_file_traits.py (23)
M mne/gui/_viewer.py (69)
M mne/gui/tests/test_coreg_gui.py (7)
M mne/surface.py (44)
Patch Links:
https://github.com/mne-tools/mne-python/pull/4937.patch
https://github.com/mne-tools/mne-python/pull/4937.diff
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
It's in the |
|
(which I did not make a screenshot of) |
|
Ah :) so it’s just for visualization?
… On Feb 13, 2018, at 12:06 PM, Eric Larson ***@***.***> wrote:
(which I did not make a screenshot of)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
Yes. Though it's also what is done internally in |
Codecov Report
@@ Coverage Diff @@
## master #4937 +/- ##
==========================================
- Coverage 87.85% 87.84% -0.01%
==========================================
Files 353 353
Lines 62977 63045 +68
Branches 10782 10792 +10
==========================================
+ Hits 55326 55385 +59
- Misses 4909 4914 +5
- Partials 2742 2746 +4 |
agramfort
left a comment
There was a problem hiding this comment.
ok if @christianbrodbeck and CIs are happy
| guess_mri_subject=options.guess_mri_subject, | ||
| head_opacity=options.head_opacity, head_high_res=head_high_res, | ||
| trans=op.expanduser(options.trans), scrollable=True, | ||
| project_eeg=options.project_eeg, verbose=options.verbose) |
There was a problem hiding this comment.
Putting in op.expanduser here leads to an error if the relevant attribute is None
|
(If you are planning on investing some time into overhauling the coregistration model it is probably not worth worrying about the scaled MRI here, since that will be handled better in the new model?) |
|
Argh no that scaling problem is a bug |
|
Okay @christianbrodbeck this should be fixed |
|
I'll go ahead and merge since the bug is fixed. @christianbrodbeck I am continuing to work on this so if you look and find other things to fix let me know. |
* ENH: Add projection to surface for coreg * FIX: Fix grow regression * STY: Fix * FIX: Fix scaling and expanduser

This PR:
mne coreg.--low-res-headdidn't always use a low res head (fixed by first looking forouter_skin.surfif it exists;subject-head.fifis now second, as it can be a dense head).outer_skin.surffiles.~in the--subjects-dirand--transpaths usingexpanduser.@christianbrodbeck do you have time to look and try? Example that shows all of these changes at once:
Closes #3700.