-
Notifications
You must be signed in to change notification settings - Fork 92
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
ENH : add support for landmarks as dict in write_anat and kind param … #955
Conversation
…in get_head_mri_trans
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.
LGTM in principle, and seems okay from a BIDS point of view (https://bids-specification.readthedocs.io/en/latest/04-modality-specific-files/02-magnetoencephalography.html).
I am missing a changelog entry, and maybe (optional) some example.
Codecov Report
@@ Coverage Diff @@
## main #955 +/- ##
==========================================
+ Coverage 94.40% 94.51% +0.10%
==========================================
Files 25 25
Lines 3559 3573 +14
==========================================
+ Hits 3360 3377 +17
+ Misses 199 196 -3
Continue to review full report at Codecov.
|
if isinstance(landmarks, (str, Path)): | ||
landmarks, coord_frame = read_fiducials(landmarks) | ||
landmarks = np.array([landmark['r'] for landmark in |
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.
It seems we're missing a test for this code path
Co-authored-by: Richard Höchenberger <richard.hoechenberger@gmail.com> Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org>
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.
LGTM!
@hoechenberger this one is good to go from my end |
Thanks @agramfort |
…in get_head_mri_trans
this is to be able to have landmarks eg for different sessions for coregistration