Closed
Description
I'm interested in doing flatmaps with PySurfer. Has anyone tried this?
A very naive approach did not work:
>>> brain = surfer.Brain('fsaverage', 'lh', 'cortex.patch.flat')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/larsoner/custombuilds/PySurfer/surfer/viz.py", line 451, in __init__
geo.load_geometry()
File "/home/larsoner/custombuilds/PySurfer/surfer/utils.py", line 126, in load_geometry
coords, faces = nib.freesurfer.read_geometry(surf_path)
File "/home/larsoner/miniconda3/envs/mne/lib/python3.6/site-packages/nibabel/freesurfer/io.py", line 128, in read_geometry
quads = quads.reshape(nquad, 4)
ValueError: cannot reshape array of size 0 into shape (4665600,4)
Metadata
Metadata
Assignees
Labels
No labels