add_cutdata() function in blender/__init__.py
See original GitHub issueDear pycortex-experts,
I think an incorrect argument is being passed to braindata.map() on line 69 of blender/__init__.py . Currently the projection="nearest" parameter used results in an error when I run the add_cutdata() function - I think this is because the map() function can either refer to Volume.map() or Vertex.map() - one requires a string referring to a type of projection to use (e.g. nearest) and the other requires a target_subject string used in mri_surf2surf. When I’m running it, it appears to be using Vertex.map() - so I modified the code so that a subject name parameter is passed instead of the string “nearest” as it’s currently doing. This solved the errors I was getting but left me with some questions.
Why is this map function it necessary (since currently it calls a function which maps a target subject to itself), and which map function – Volume.map() or Vertex.map() – is actually intended to be used?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:6 (4 by maintainers)

Top Related StackOverflow Question
See if this does it: https://github.com/gallantlab/pycortex/pull/399
#399 was merged. closing this issue. Thanks for the report @sumiyaabdi!