Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Get_structure_mesh always returns the same tessellation #750
Hi, I want to get the mesh (Vertices, Faces) of specific areas. These are the commands I'm using:
import allensdk.core.reference_space_cache as p
object_id = 8
[vertices, vertex_normals, faces, face_normals] = a.get_structure_mesh(object_id , 'None')
However, even when I use a different object_id, I always get the same mesh (vertices: 87732x2, Faces: 174225x3) which is actually the entire brain.
get_structure_mesh has 2 parameters (& self, of course): "structure_id", and "file_name".
when you call
To solve this problem, just don't supply the second parameter. It will default to None (not a string!) and save the file to an appropriate place relative to your cache's manifest.
Thanks, your solution did the trick.
I have one more question:
Glad to hear that worked.
When I find some time I'll look into the structure retrieval from the electrode positions.