Open
Description
I'm trying to plot a flatmap and can't get past quickshow. I've processed a subject's data with freesurfer and goyt the transform files and the surfaces, then put them in the subject file below the database. After that I'm trying to start a quickshow to see the map but encounter the following error:
Traceback (most recent call last): File "/run/user/1003/gvfs/smb-hare:server=172.22.124.104,share=mingxue/Project/code/make_mapper.py", line 23, in <module>
cortex.quickshow(voxel_vol)
File "/home/mingxue/.local/lib/python3.8/site-packages/cortex/quickflat/view.py", line 142, in make_figure
data_im, extents = composite.add_data(ax, dataview, pixelwise=pixelwise, thick=thick, sampler=sampler,
File "/home/mingxue/.local/lib/python3.8/site-packages/cortex/quickflat/composite.py", line 162, in add_data
im, extents = make_flatmap_image(dataview, recache=recache, pixelwise=pixelwise, sampler=sampler,
File "/home/mingxue/.local/lib/python3.8/site-packages/cortex/quickflat/utils.py", line 44, in make_flatmap_image
mask, extents = get_flatmask(braindata.subject, height=height, recache=recache)
File "/home/mingxue/.local/lib/python3.8/site-packages/cortex/quickflat/utils.py", line 137, in get_flatmask
mask, extents = _make_flatmask(subject, height=height)
File "/home/mingxue/.local/lib/python3.8/site-packages/cortex/quickflat/utils.py", line 362, in _make_flatmask
left, right = polyutils.trace_poly(polyutils.boundary_edges(polys))
File "/home/mingxue/.local/lib/python3.8/site-packages/cortex/polyutils/misc.py", line 136, in trace_poly
hemisphere_0, hemisphere_1 = components[order[-1]], components[order[-2]]
IndexError: index -1 is out of bounds for axis 0 with size 0
Can anyone help me with this? Thanks a lot~~~
Metadata
Metadata
Assignees
Labels
No labels