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.