-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
MRG: Remove unused argument and refactor #5140
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
Conversation
|
@jona-sassenhagen do you have time to take a look? |
Codecov Report
@@ Coverage Diff @@
## master #5140 +/- ##
==========================================
+ Coverage 88.14% 88.17% +0.02%
==========================================
Files 357 358 +1
Lines 65777 65902 +125
Branches 11192 11208 +16
==========================================
+ Hits 57982 58111 +129
+ Misses 4958 4956 -2
+ Partials 2837 2835 -2 |
| vmin_, vmax_ = _setup_vmin_vmax(data_, None, None) | ||
| plot_topomap(data_.flatten(), pos, vmin=vmin_, vmax=vmax_, | ||
| res=64, axes=ax, cmap=cmap, outlines=outlines, | ||
| contours=contours, show=False, image_interp='bilinear')[0] |
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.
This is verbatim copy-paste except for the removal of image_mask=None here
|
So it seems it was originally used for this: Hm. I guess I approve. |
|
Ahh. If you are using the default ( |
|
LGTM |
* FIX: Remove unused argument and refactor * FIX: Move _plot_corrmap
I think we have some code path cruft that has built up in
mne/viz/topomap.py.image_maskis never used to modify the plots, so I removed it._make_image_maskboth set up the (unused)image_maskand modifiedposbased onautoshrink, so I renamed it to_autoshrink.outlinesgets set by_check_outlinesto always be a dict. So I removed the conditionals having to do withif outlines is Nonethat happen afterward._plot_corrmaptomne/viz/topomap.pyto keep plotting code inmne/vizThis is a step toward #5085. Simplifying this first and getting feedback should make the subsequent steps easier.