# Error while adding digitized points to raw EEG data

**URL:** <https://mne.discourse.group/t/error-while-adding-digitized-points-to-raw-eeg-data/5270>\
**Category:** Support & Discussions\
**Tags:** eeg, montage\
**Created:** [July 14, 2022, 7:26am UTC](https://mne.discourse.group/t/error-while-adding-digitized-points-to-raw-eeg-data/5270 "2022-07-14T07:26:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mshree736](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mshree736/32/951_2.png) [@mshree736](https://mne.discourse.group/u/mshree736)\
**Post date:** [July 14, 2022, 7:26am UTC](https://mne.discourse.group/t/error-while-adding-digitized-points-to-raw-eeg-data/5270/1 "2022-07-14T07:26:17Z")

</div>

ch\_names = [‘FP2’, ‘F7’,‘F3’,’ F4’,‘F8’,‘T3’,‘C3’,‘C4’,‘T4’,‘P3’,‘P4’,‘T6’,‘O2’,‘F9’,‘O1’,‘Fp1’,‘F10’,‘T5’]  
ch\_types = [‘eeg’,‘eeg’,‘eeg’,‘eeg’,‘eeg’,‘eeg’,‘eeg’,‘eeg’,‘eeg’,‘eeg’,‘eeg’,‘eeg’,‘eeg’,‘eeg’,‘eeg’,‘eeg’,‘eeg’,‘eeg’]  
info = mne.create\_info(ch\_names=ch\_names, sfreq=256, ch\_types=ch\_types)  
h01.info = info  
print(h01.info)

montage\_kind = “standard\_1020”  
montage = mne.channels.make\_standard\_montage(montage\_kind)  
h01.set\_montage(montage, match\_case=False)

Iam trying to add digitized points to the eeg data i have acquired. The digitzed poits are added but im getting error while plotting the eeg data and getting the same “Assertion error” for every code im attempting to run after adding digitized points.  
how to solve this issue.

---

<div class="post-metadata">

**Author:** ![mscheltienne](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mscheltienne/32/827_2.png) [@mscheltienne](https://mne.discourse.group/u/mscheltienne)\
**Post date:** [July 14, 2022, 8:39am UTC](https://mne.discourse.group/t/error-while-adding-digitized-points-to-raw-eeg-data/5270/2 "2022-07-14T08:39:39Z")

</div>

Can you detail the error you are getting?

I’m surprised you can even add the montage to your data. Here is what I get with this snippet of code:

```python
import mne

ch_names = ["FP2", "F7", "F3", "F4", "F8", "T3", "C3", "C4",
            "T4", "P3", "P4", "T6", "O2", "F9", "O1", "Fp1", 
            "F10", "T5"]           
info = mne.create_info(ch_names=ch_names, sfreq=256, ch_types="eeg")
info.set_montage("standard_1020")

```

Error:

```python
ValueError: DigMontage is only a subset of info. There are 1 channel position not present in the DigMontage. The required channels are:

['FP2'].

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.

```

And indeed, if we look at your channel names, the first one does not conform to the standard 10/20 naming convention. It should be `Fp2`.
