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
MRG: Add "interaction" param to CoregistrationUI #9972
Conversation
CI failure seems unrelated:
|
trying :
@hoechenberger can you have a look? it seems there was some interaction option with mayavi backend. |
Oh, I never tried the CLI. Yes, I can fix that. |
@agramfort Can you see if the last commit fixes things for you? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works great for me !
@GuillaumeFavelier feel free to merge if you're happy. pip-pre can be ignored and should be fixed by #9973 |
Going ahead and merging as Guillaume is on vacation |
@larsoner Is it safe to backport this? |
Also made me realize I forgot a changelog entry. |
I think we can consider it a bugfix, don't forget to add an entry in the |
... also when backporting, please add a line to |
* upstream/main: remove dead link (no suitable alternative) [skip actions][skip azp] (mne-tools#9979) MRG: Improve docstring of mne.io.Info and improve error messages in Info._attributes (mne-tools#9922) MRG: Add "interaction" param to CoregistrationUI (mne-tools#9972) MRG, FIX: Fix interior check (mne-tools#9968)
* Backport #9972 * Fix defaults * MRG: Add argument overwrite to export for raws and epochs to match save. (#9975) * Add argument overwrite to export for Raws. * Add argument overwrite to export for epochs. * Add tests. * Add entry to changelog. * Move entry to changelog to Bugs and fix spelling typo. * fix indentation for ..versionadded * typo fix. * fix tests. * Change versionadded from 1.0 to 0.24.1 [skip azp] [skip actions] * Add overwrite for evoked instances (mffpy related). * FIX: replace else statement with finally. * Use shutil.rmtree instead of os.remove since mffpy creates a directory. * Remove finally. * Update changelog. * improve comment preceding folder deletion. * Update mne/epochs.py [skip ci] Co-authored-by: Eric Larson <larson.eric.d@gmail.com> * Update mne/export/_egimff.py [skip ci] Co-authored-by: Eric Larson <larson.eric.d@gmail.com> * Update mne/export/_export.py [skip ci] Co-authored-by: Eric Larson <larson.eric.d@gmail.com> * Update mne/export/_export.py [skip ci] Co-authored-by: Eric Larson <larson.eric.d@gmail.com> * Update mne/export/_export.py [skip ci] Co-authored-by: Eric Larson <larson.eric.d@gmail.com> * Update mne/export/_egimff.py Co-authored-by: Eric Larson <larson.eric.d@gmail.com> * Fix behavior when pathlib.Path are passed instead of strings. * Fix import and style. * add test for epochs as well. * Remove str(fname) as it's not needed. * fix positional/keyword arguments. Co-authored-by: Eric Larson <larson.eric.d@gmail.com> * remove dead link (no suitable alternative) [skip actions][skip azp] (#9979) * FIX: Backport fix * import fix for scipy 1.8 pre (#9973) * import fix for scipy 1.8 pre * fix arg oversight * FIX: A couple more * FIX: Found another * FIX: More [skip azp] [skip circle] * FIX: Correct [skip circle] [skip azp] * FIX: One more Co-authored-by: Eric Larson <larson.eric.d@gmail.com> Co-authored-by: Mathieu Scheltienne <73893616+mscheltienne@users.noreply.github.com> Co-authored-by: Eric Larson <larson.eric.d@gmail.com> Co-authored-by: Daniel McCloy <dan@mccloy.info>
This adds an
interaction
kwarg toCoregistrationUI
.mne.gui.coregistration()
inmain
simply ignores itsinteraction
parameter and doesn't pass it toCoregistrationUI
. This PR fixes this behavior.Following a recent conversation with @larsoner, this also changes the default interaction style to
'terrain'
.In the
'terrain'
interaction mode, zooming by scrolling up/down with the mouse doesn't work for me on macOS, so this needs to be fixed.Screen.Recording.2021-11-06.at.19.51.47.mov
Screen.Recording.2021-11-06.at.19.52.56.mov
cc @agramfort