Hello everybody
For reading and loading raw EEG data in BIDS format, I have the RuntimeWarning: Not setting positions of 3 misc channels found in montage: [‘GSR’, ‘HR’, ‘RESP’].
I used the code below, but I still have the warning.
I should note that there is no participants.tsv file in the database.
I was wondering if anybody could help me with that.
mapping = {'GSR': 'misc', 'HR': 'misc', 'RESP': 'misc'}
bids_path = BIDSPath(subject=subject_id.replace('sub-', ''),
session='00',
task='rest',
datatype='eeg',
root=basepath)
raw = read_raw_bids(bids_path=bids_path)
raw.set_channel_types(mapping)
eeg_channels = [ch for ch, ch_type in zip(raw.ch_names, raw.get_channel_types()) if ch_type == 'eeg']
montage = mne.channels.make_standard_montage('standard_1020')
raw.pick_channels(eeg_channels)
raw.set_montage(montage, match_case=False, on_missing='ignore')