Skip to content

[BUG] Interpolate bads ignores ECoG and sEEG channels #12333

@alexrockhill

Description

@alexrockhill

Description of the problem

Interpolate bads silently ignores ecog and seeg channels.

Steps to reproduce

import mne

misc_path = mne.datasets.misc.data_path()

raw = mne.io.read_raw(misc_path / 'ecog' / 'sample_ecog_ieeg.fif')
raw.info['bads'] = ['G10', 'G51']
raw.load_data()
raw.interpolate_bads()

Link to data

No response

Expected results

Channels should be interpolated

Actual results

Setting channel interpolation method to {}.
<ipython-input-10-fe35daf7ae7f>:2: RuntimeWarning: No bad channels to interpolate. Doing nothing...

Additional information

I think for ecog the existing spherical interpolation is reasonable. Perhaps seeg should interpolate per lead but I think raising a NotImplementedError would be more helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions