-
Notifications
You must be signed in to change notification settings - Fork 9
General Space Conversion #217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Looks pretty good! A couple comments
inflated_coords = src_to_dst(coords, './fsaverage/surf/lh.pial', './fsaverage/surf/lh.sphere.reg', './fsaverage/surf/lh.inflated', './fsaverage/surf/lh.sphere.reg') |
|
I added the test and fixed the missed function call in the init file. |
| tree_elecs = cKDTree(lh_verts_sub) | ||
| _, mapping_indices_elecs = tree_elecs.query(coords, k=1) | ||
|
|
||
| print(f"#Electrodes in LH: {np.sum(mapping_indices_elecs < lh_threshold)}, RH: {np.sum(mapping_indices_elecs >= lh_threshold)}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine to have a print statement, but can you add a verbose argument to the function then? verbose should be an int and if it's greater than 0 then do this print statement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also set the default as verbose=0
|
Just the one comment about a |
|
Thanks. Just added. |
|
Nice, make sure to add a docstring for the verbose argument. Then it looks good! |
|
Oh sorry one more thing to get it to render inside the docs. Can you add it to this .rst file using the ..autofunction command just like the conversion functions for MNI and fsaverage? |
|
Oh, sorry a lot of details I am not aware of! Just did |
|
Gavin the failure is not because of my test. It's because of test_mni152_fsaverage_conversions that I guess I didn't change anything threre. |
|
My bad! I fixed it. Let's see if it now works |
|
No worries, super weird. Let's see if it works now |
gavinmischler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Merge it whenever you're ready!
Uses this logic: