ValueError Traceback (most recent call last)
in
1 montage = mne.channels.make_standard_montage(‘standard_1020’)
2 raw.set_montage(montage, on_missing=‘ignore’)
----> 3 raw_1020 = raw.copy().set_montage(ten_twenty_montage)
4 ica = mne.preprocessing.ICA(n_components=15, random_state=97)
5 ica.fit(raw)
in set_montage(self, montage, match_case, match_alias, on_missing, verbose)
~/opt/anaconda3/lib/python3.8/site-packages/mne/io/meas_info.py in set_montage(self, montage, match_case, match_alias, on_missing, verbose)
168 from …channels.montage import _set_montage
169 info = self if isinstance(self, Info) else self.info
→ 170 _set_montage(info, montage, match_case, match_alias, on_missing)
171 return self
172
~/opt/anaconda3/lib/python3.8/site-packages/mne/channels/montage.py in _set_montage(failed resolving arguments)
890 ‘in your analyses.’
891 )
→ 892 _on_missing(on_missing, missing_coord_msg)
893
894 # set ch coordinates and names from digmontage or nan coords
~/opt/anaconda3/lib/python3.8/site-packages/mne/utils/check.py in _on_missing(on_missing, msg, name, error_klass)
755 on_missing = ‘warn’ if on_missing == ‘warning’ else on_missing
756 if on_missing == ‘raise’:
→ 757 raise error_klass(msg)
758 elif on_missing == ‘warn’:
759 warn(msg)
ValueError: DigMontage is only a subset of info. There are 24 channel positions not present in the DigMontage. The required channels are:
[‘EEG P3-Pz’, ‘EEG C3-Pz’, ‘EEG F3-Pz’, ‘EEG Fz-Pz’, ‘EEG F4-Pz’, ‘EEG C4-Pz’, ‘EEG P4-Pz’, ‘EEG Cz-Pz’, ‘CM’, ‘EEG A1-Pz’, ‘EEG Fp1-Pz’, ‘EEG Fp2-Pz’, ‘EEG T3-Pz’, ‘EEG T5-Pz’, ‘EEG O1-Pz’, ‘EEG O2-Pz’, ‘EEG X3-Pz’, ‘EEG X2-Pz’, ‘EEG F7-Pz’, ‘EEG F8-Pz’, ‘EEG X1-Pz’, ‘EEG A2-Pz’, ‘EEG T6-Pz’, ‘EEG T4-Pz’].
Consider using inst.set_channel_types if these are not EEG channels, or use the on_missing parameter if the channel positions are allowed to be unknown in your analyses.