Hi,
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?
I have 15 montage/coordinate points for each hemisphere (Source/Detector), I renamed them in the specific S/D form. The data-recording is then inbetween the 1-22, 23-44 points. Do I have to set them to be the channels? And if so how should I name them?
Thank you for your fast response and help! I tried to save/write_info but the encoding (utf-8 etc.) seems to be wrong when I try to save it as a .txt file.
Best, Rebi
From office hours, this is a limitation with read_raw_hitachi where we should support multiple csv files, one per probe. @rfahrn will open a GitHub issue, and then hopefully we can fix it soon!