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 |
larsoner
left a comment
There was a problem hiding this comment.
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