Tried to interpolate the bad AR8 channel for the film task of Subj 01 in this dataset. My code went:
import mne
import mne_bids
BIDS_Constant = {'subject':'01',
'session':'iemu',
'run':'1',
'datatype':'ieeg',
'acquisition':'clinical',
'root':'Dataset',
'task':'film'}
raw = mne_bids.read_raw_bids(bids_path=mne_bids.BIDSPath(**BIDS_Constant, suffix='ieeg', extension='.vhdr'))
raw.load_data()
eeg_data = raw_film.copy().pick(mne.pick_channels_regexp(raw.ch_names, regexp='AR[1-9]'))
eeg_data_interp = eeg_data.copy().interpolate_bads(reset_bads=False)
Error message:
RuntimeError: Digitization points dig_kinds=[4 (FIFFV_POINT_EXTRA), 3 (FIFFV_POINT_EEG)] not in head coordinates, contact mne-python developers