You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: _plot_mri_contours makes too many figures #9812
It seems like we should only create this figure if it's needed, rather than always creating it and closing it if it's not needed. EDIT: though maybe I'm missing some reason it needs to be created, since it was created in both cases before, too...?
Activity
larsoner commentedon Oct 7, 2021
... also it seems weird to have moved the
figcreation out of the conditional, just to close the figure:https://github.com/mne-tools/mne-python/pull/9754/files#diff-29e49a197d8f4e70c13388d2374c60cb9a2811aeb0ccfaf67e39ec82717456dbR392-R397
It seems like we should only create this figure if it's needed, rather than always creating it and closing it if it's not needed. EDIT: though maybe I'm missing some reason it needs to be created, since it was created in both cases before, too...?
hoechenberger commentedon Oct 7, 2021
I think I simply forgot about this change request in the end. I will take a look shortly
Allow _plot_mri_contours() to return arrays