Dear community,
I am following the iEEG electrode localisation tutorial. However, I am finding a problem when I try to translate the electrodes from native space to the standard space.
That is, when calling:
montage = raw.get_montage()
montage.apply_trans(subj_trans)
I get the following error:
‘NoneType’ object has no attribute ‘apply_trans’
It seems that I am not getting a correct montage class, as “apply_trans” is not an option in the variable.
I believe that this happens because raw.info[‘dig’] is empty. Thus, I would like to know can I create the dig structure for the iEEG data? I could not identify that information in the tutorial.
Based on previously performed manual CT-T1 corregistration, I can find the electrode channels localization in raw.info[‘chs’].
Should I use the function mne.channels.make_dig_montage() and export the channels localisation from raw.info to the ch_pos=None argument? Then, nasion, lpa and rpa are native space coordinates extracted from the T1? Finally, should I select a specific coord_frame reference?
Thanks for your help!,
I am using OSX Monterrey, 12.3.1 in Jupyter Lab with the following libs (an others not listed)
mne 1.1.1