My data only has 62 channels. From the forum, I learned that I can use match_case=False, match_alias=True
to match the electrode positions of standard_1005, but the generated image has an offset and is shifted upwards.
This is the plot image:
You might want to try "biosemi64" instead of "standard_1005". The reason is that the former contains idealized locations, whereas the latter contains actual measured locations AFAIK. Otherwise, as you’ve already mentioned, you can play around with the sphere argument to set the head origin.
’
Traceback (most recent call last):
File “D:\Desktop\多模态脑电信号\Web\data_process.py”, line 35, in
raw.set_montage(montage, match_case=False, match_alias=True)
File “”, line 12, in set_montage
File “C:\Users\22801\AppData\Local\Programs\Python\Python312\Lib\site-packages\mne_fiff\meas_info.py”, line 422, in set_montage
_set_montage(info, montage, match_case, match_alias, on_missing)
File “C:\Users\22801\AppData\Local\Programs\Python\Python312\Lib\site-packages\mne\channels\montage.py”, line 1250, in _set_montage
_on_missing(on_missing, missing_coord_msg)
File “C:\Users\22801\AppData\Local\Programs\Python\Python312\Lib\site-packages\mne\utils\check.py”, line 1191, in _on_missing
raise error_klass(msg)
ValueError: DigMontage is only a subset of info. There are 4 channel positions not present in the DigMontage. The channels missing from the montage are:
[‘PO5’, ‘PO6’, ‘CB1’, ‘CB2’].
Consider using inst.rename_channels to match the montage nomenclature, or 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.