-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
MNT: notebook conditionals in Brain & _update #9016
Conversation
Looks like it's improved but not complete:
Or are these too difficult to refactor? |
I take the time to do it properly. Some of them are not obvious, for example: mne-python/mne/viz/_brain/_brain.py Lines 667 to 678 in 0f0fa02
and mne-python/mne/viz/_brain/mplcanvas.py Lines 32 to 48 in 0f0fa02
I might have an idea for Those in |
Looks like great progress! It also seems like the last few I looked at |
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
I lack inspiration to get rid of |
I could 8 |
I am waiting for the CIs, hopefully the failure on MacOS is just random. I tried to refactor the last bit of: mne-python/mne/viz/_brain/_brain.py Lines 659 to 664 in 62e29ed
into: mne-python/mne/viz/_brain/_brain.py Lines 658 to 665 in 98bbc62
But this part requires double-checking. This is ready for reviews @larsoner |
Awesome!
I would get rid of the |
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.
Let's merge once CIs come back happy, thanks in advance @GuillaumeFavelier !
This PR follows #9014 (comment) and refactors some conditionals out of
Brain
.It also helps with #8997