Annotations after set_bipolar_reference

Hi, I’ve succesfully used mne.Annotations to annotate EEG data for a while now. However, today I created a bipolar montage (instead of the reference channels I used before) using set_bipolar_reference and when I now run the code, it gives the following error:

ValueError: At least one channel name in annotations missing from info: FP1-REF-F7-REF

Does anyone know how I can fix this?

  • MNE version: e.g. 0.24.0
  • operating system: Windows 10

Hello,

What code is throwing this error?
Note that set_bipolar_reference adds a new virtual channel and drops the channels used to build this virtual channel. If you want to retain the channels used to build the virtual channel, you should provide the argument drop_refs=False. c.f. the API page: mne.set_bipolar_reference — MNE 1.0.3 documentation

Mathieu

1 Like