Skip to content

MRG: Improve coreg visual space - #3937

Merged
agramfort merged 2 commits into
mne-tools:masterfrom
larsoner:coreg-viz
Jan 30, 2017
Merged

agramfort merged 2 commits into
mne-tools:masterfrom
larsoner:coreg-viz

Conversation

@larsoner

Copy link
Copy Markdown
Member

This PR aims to make coreg use space a little bit more efficiently. IMO for things like R/A/S if people don't know them, we can provide usable tooltips (but that might not even be necessary).

Builds on #3935, so WIP until that gets merged.

Doing:

mne coreg -s fsaverage -f ~/mne_data/MNE-sample-data/MEG/sample/sample_audvis_raw.fif --verbose --head-opacity=0.5 --low-res-head

On master (but really #3935 to expose necessary command-line options):

screenshot from 2017-01-26 16-27-36

This PR:

screenshot from 2017-01-26 16-27-21

@christianbrodbeck see if you like the changes.

@larsoner larsoner changed the title WIP: Improve coreg visual space MRG: Improve coreg visual space Jan 28, 2017
@larsoner

Copy link
Copy Markdown
Member Author

Okay @christianbrodbeck this one should be good to test / merge now, too.

Although the higher priority is clearly getting the scaling to work/show properly again if you'd rather work on that :)

@codecov-io

codecov-io commented Jan 28, 2017 •

Copy link
Copy Markdown

Current coverage is 85.89% (diff: 80.00%)

Sunburst

No coverage report found for master at 4f948fa.

Powered by Codecov. Last update 4f948fa...0716902

@larsoner larsoner added this to the 0.15 milestone Jan 28, 2017

@christianbrodbeck christianbrodbeck 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.

Looks good, I like the layout changes. I'm wondering now whether we should save the width and height parameters when closing the GUI (as well as head transparency, low res head etc.)

Comment thread mne/gui/_coreg_gui.py Outdated
distance = Float(5., label="Distance [mm]", desc="Maximal distance for "
"head shape points from MRI in mm")
omit_points = Button(label='Omit Points', desc="Omit head shape points "
distance = Float(5., desc="Maximal distance for head shape points from "

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.

Since traits converts desc to "Specifies " + desc you could start with a lowercase letter to avoid a tooltip like "Specifies Maximum distance ..."

Comment thread mne/gui/_coreg_gui.py Outdated
omit_points = Button(label='Omit Points', desc="Omit head shape points "
distance = Float(5., desc="Maximal distance for head shape points from "
"MRI in mm")
omit_points = Button(label='Omit [mm]', desc="Omit head shape points "

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.

As above regarding capitalization of desc (I know it's weird for a button...) -- not sure if it can be avoided...

Comment thread mne/gui/_coreg_gui.py Outdated
"for the purpose of the automatic coregistration "
"procedure.")
reset_omit_points = Button(label='Reset Omission', desc="Reset the "
reset_omit_points = Button(label='Reset', desc="Reset the "

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.

desc ...

@larsoner

Copy link
Copy Markdown
Member Author

I'm wondering now whether we should save the width and height parameters when closing the GUI (as well as head transparency, low res head etc.)

Sure, feel free to do that in a follow-up PR. It's what we do with raw.plot IIRC

desc parameters fixed

@larsoner

Copy link
Copy Markdown
Member Author

@agramfort feel free to merge if you're happy

@agramfort
agramfort merged commit 7d653f9 into mne-tools:master Jan 30, 2017
@larsoner
larsoner deleted the coreg-viz branch April 2, 2020 18:26
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.

4 participants