@wmvanvliet EvokedField._on_colormap_range has a comparison if type == "meg", but type here is the builtin type rather than something passed by kwarg for example:
When you get a chance can you fix this?
Bonus points for removing these shadowing of builtins, it's a reason we generally prefer stuff like type_ to type when not use the builtin -- the flake / ruff check would have caught this issue then!
@wmvanvliet
EvokedField._on_colormap_rangehas a comparisonif type == "meg", buttypehere is the builtintyperather than something passed by kwarg for example:mne-python/mne/viz/evoked_field.py
Line 476 in 16c17b4
When you get a chance can you fix this?
Bonus points for removing these shadowing of builtins, it's a reason we generally prefer stuff like
type_totypewhen not use the builtin -- theflake/ruffcheck would have caught this issue then!