gallantlab / pycortex

Pycortex is a python-based toolkit for surface visualization of fMRI data
https://gallantlab.github.io/pycortex
BSD 2-Clause "Simplified" License
592 stars 138 forks source link

#boundary edge is zero #408

Closed SeojinYoon closed 2 years ago

SeojinYoon commented 2 years ago

Pycortex version 1.2.2 blender version 2.79

When I have tried to plot flat map using this function "make_flatmap_image", I found an error

image

"index -1 is out of bounds for axis 0 with size 0"

So, I have debugged source code and I found that "boundary_edges" function returns empty array.

Why the function returns empty array?

For information // I alternately called the function's clean argument but flat~.gii array is same when I extracted array using this function "cortex.db.get_surf"

I was checked segmentation is well using this function "cortex.segment.edit_segmentation" I used "segment.cut_surface" function for cutting automatically. I do not touch anything in this process.

I used these data // flat_lh.gii: https://drive.google.com/file/d/1jhaNnZUa6JMTTtTCyoCxgb-WuU_VWvsI/view?usp=sharing flat_rh.gii: https://drive.google.com/file/d/1lqyMIVvi4uYIQWA1JaMM-oK7N3taqYNB/view?usp=sharing

blender left hemisphere: https://drive.google.com/file/d/1DUqHiitvHFsxqdxWdmLdzDrSbgtRpUxn/view?usp=sharing blender right hemisphere: https://drive.google.com/file/d/1NnUTPZQF6Y5nVTctEQb8GWn6ndp-PZdM/view?usp=sharing

Thank you for reading!