Skip to content
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

MRG: Allow to specify custom landmark names in get_head_mri_trans() #946

Closed

Conversation

hoechenberger
Copy link
Member

@hoechenberger hoechenberger commented Jan 19, 2022

See mne-tools/mne-python#10208 (comment) is for why this is useful.

Merge checklist

Maintainer, please confirm the following before merging:

  • All comments resolved
  • This is not your own PR
  • All CIs are happy
  • PR title starts with [MRG]
  • whats_new.rst is updated
  • PR description includes phrase "closes <#issue-number>"

@hoechenberger hoechenberger changed the title Allow to specify custom landmark names in get_head_mri_trans() MRG: Allow to specify custom landmark names in get_head_mri_trans() Jan 19, 2022
@hoechenberger hoechenberger marked this pull request as ready for review January 19, 2022 14:40
@hoechenberger
Copy link
Member Author

This is ready for review. I'm not particularly proud of that code, but it does do the job!

@codecov
Copy link

codecov bot commented Jan 19, 2022

Codecov Report

Merging #946 (a2b5de0) into main (2bb880a) will increase coverage by 0.01%.
The diff coverage is 95.45%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #946      +/-   ##
==========================================
+ Coverage   94.39%   94.41%   +0.01%     
==========================================
  Files          25       25              
  Lines        3550     3562      +12     
==========================================
+ Hits         3351     3363      +12     
  Misses        199      199              
Impacted Files Coverage Δ
mne_bids/read.py 95.96% <95.45%> (+0.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2bb880a...a2b5de0. Read the comment docs.

Copy link
Member

@agramfort agramfort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am bit worried of "custom names" in a standard...

@@ -40,6 +40,8 @@ Enhancements

- Add support for CNT (Neuroscan) files in :func:`mne_bids.write_raw_bids`, by `Yorguin Mantilla`_ (:gh:`924`)

:func:`mne_bids.get_head_mri_trans` gained a new parameter, ``landmark_names``, allowing to specify custom names used for the anatomical landmarks in the MRI data, by `Richard Höchenberger`_ (:gh:`xxx`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix xxx

@hoechenberger
Copy link
Member Author

hoechenberger commented Jan 19, 2022

I am bit worried of "custom names" in a standard...

I hear you and +10000 this.

Well, what can we do, we ain't gonna fix this anytime soon ...
It's a mess.

doc/whats_new.rst Outdated Show resolved Hide resolved
@hoechenberger
Copy link
Member Author

Superseded by #955

@hoechenberger hoechenberger deleted the custom-landmark-names branch February 13, 2022 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants