Skip to content

Commit d4420c5

Browse files
MAINT: keep _line_figure backward-compatible for DipoleFixed
1 parent 375c3f6 commit d4420c5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

mne/viz/_mpl_figure.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2378,7 +2378,10 @@ def _line_figure(inst, axes=None, picks=None, **kwargs):
23782378
# if picks is None, only show data channels
23792379
allowed_ch_types = _DATA_CH_TYPES_SPLIT if picks is None else _VALID_CHANNEL_TYPES
23802380
# figure out expected number of axes
2381-
ch_types = np.array(inst.get_channel_types())
2381+
try:
2382+
ch_types = np.array(inst.get_channel_types())
2383+
except AttributeError:
2384+
ch_types = np.array(inst.info.get_channel_types())
23822385
if picks is not None:
23832386
ch_types = ch_types[picks]
23842387
n_axes = len(np.intersect1d(ch_types, allowed_ch_types))

0 commit comments

Comments
 (0)