import os from freesurfer_surface import Annotation from conftest import SUBJECTS_DIR def test_load_annotation(): annotation = Annotation.read(os.path.join(SUBJECTS_DIR, 'fabian', 'label', 'lh.aparc.annot')) assert len(annotation.vertex_values) == 155622 assert annotation.vertex_values[0] == (((100 << 8) + 20) << 8) + 220 assert annotation.vertex_values[1] == (((100 << 8) + 20) << 8) + 220 assert annotation.vertex_values[42] == (((140 << 8) + 30) << 8) + 20