surface = Surface.read_triangular('lh.white') has problem #51
Description
from freesurfer_surface import Surface surface = Surface.read_triangular('lh.white') with open('lhedges.txt', "w") as f: for triangle in surface.triangles: for edge_vertex_indices in triangle.adjacent_vertex_indices(): edge_vertices = surface.select_vertices(edge_vertex_indices) f.write("{} {}\n".format(edge_vertex_indices[0],edge_vertex_indices[1]))
Traceback (most recent call last):
File "D:/my_subject/2020.7.1-7.7/2016GCN/graph-to-spectral-coordinate/fsaverage5/test1.py", line 19, in
surface = Surface.read_triangular('lh.white')
File "D:\anaconda3.4\lib\site-packages\freesurfer_surface_init_.py", line 431, in read_triangular
surface.read_triangular(surface_file)
File "D:\anaconda3.4\lib\site-packages\freesurfer_surface_init.py", line 424, in _read_triangular
self.command_lines = list(self.read_cmdlines(stream))
File "D:\anaconda3.4\lib\site-packages\freesurfer_surface_init.py", line 381, in _read_cmdlines
assert tag == cls._TAG_CMDLINE # might be TAG_GROUP_AVG_SURFACE_AREA
AssertionError
Is there a problem with the library file?