Skip to content

Commit ec7683f

Browse files
cbrnrCopilot
andcommitted
Fix nesting
Co-authored-by: Copilot <copilot@github.com>
1 parent b351afb commit ec7683f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

mne/viz/_mpl_figure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
channel_indices_by_type,
5656
pick_types,
5757
)
58+
from ..defaults import DEFAULTS
5859
from ..fixes import _close_event
5960
from ..utils import Bunch, _click_ch_name, check_version, logger
6061
from ._figure import BrowserBase
@@ -141,8 +142,6 @@ def _apply_mpl_theme_to_kwargs(kwargs):
141142
kwargs[key] = _DARK_BAD_COLOR
142143
# channel type colors: override only entries still at their light defaults
143144
if "ch_color_dict" in kwargs:
144-
from ..defaults import DEFAULTS
145-
146145
light_defaults = DEFAULTS["color"]
147146
for ch_type, dark_color in _DARK_CHANNEL_OVERRIDES.items():
148147
if ch_type in kwargs["ch_color_dict"] and kwargs["ch_color_dict"][

0 commit comments

Comments
 (0)