Gii compatibility apparently got lost in recent commits. I was able to work around it using
fs_to_scanner = np.eye(4) if surf_file[-4:] == ".gii": surf_gii = nib.load(surf_file) coords = surf_gii.agg_data("NIFTI_INTENT_POINTSET") faces = surf_gii.agg_data("NIFTI_INTENT_TRIANGLE") volume_info = {"cras": np.array([0.0, 0.0, 0.0])} else: # load freesurfer surface coords, faces, volume_info = nib.freesurfer.read_geometry( surf_file, read_metadata=True )
Not sure, if thats a good way to do it.