question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

add_cutdata() function in blender/__init__.py

See original GitHub issue

Dear 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
marklescroartcommented, Sep 11, 2021
0reactions
mvdoccommented, Oct 23, 2021

#399 was merged. closing this issue. Thanks for the report @sumiyaabdi!

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found