I am student and just started working on my first fNIRS project. Unfortunately, my supervisors have never used MNE and can’t help me, so I really hope you can!
I am using the following version/system:
- MNE version: e.g. 1.0.3
- operating system: Windows 10
I instantiated objects (montage11=left and right hemi., montage11_1=left hemi, montage11_2= right hemi) of DigMontage instance. I then plottet the montage, see image.
After that I tried to use the set_montage method on the raw Hitachi-raw object. The left hemisphere worked perfectly, however I got no error on the right hemisphere (montage11_2).
montage11 = self_montage(file_path='Data/S11/0001.pos', csv_file='Data/S11/0001_edit.csv') # left hemisphere (Probe 1) montage11_1 = self_montage(file_path='Data/S11/0001.pos', csv_file='Data/S11/probe1_channel_montage.csv') raw1.set_montage(montage11_1,match_case=True,match_alias=True,on_missing='ignore') # right hemisphere (Probe 2) montage11_2 = self_montage(file_path='Data/S11/0001.pos', csv_file='Data/S11/probe2_channel_montage.csv') # mne.set_montage right hemisphere: raises Error - IndexError: index 44 is out of bounds for axis 0 with size 44 raw2.set_montage(montage11_2)
Do you know what the problem is and how I can make it work for both hemisphere?