When using mne.read_labels_from_annot(), I got the following error:
RuntimeError: Number of surface vertices (128723) for subject xxxx does not match the expected number of vertices (129064) for annotation file …\lh.parc2018yeo17_200.annot
, with 128723 being the number of vertices in the source space, which was created with mne.setup_source_space(). I have created parcellations of this type (Schaefer 2018) for dozens of subjects and never encountered this issue before.
I tried under MNE 23.4 and it had the same result.
Decided now to rerun the entire Freesurfer processing and parcellation creation anew for this subject and see if that changes anything, although I can’t really fathom what could have gone wrong the previous time to cause this specific error.