-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 interpolate_to method #13044
Conversation
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴 |
for more information, see https://pre-commit.ci
…-python into interpolate_to
for more information, see https://pre-commit.ci
Perfect @antoinecollas I can take it from here! @larsoner I see three options:
|
option 4: you add @antoinecollas's fork as a new remote, create a branch based off this $ # from within your MNE-Python folder:
$ git remote add antoinecollas [email protected]:antoinecollas/mne-python.git
$ git fetch antoinecollas
$ git checkout -b interpolate_to antoinecollas/interpolate_to
$ # make some changes, make some commits
$ git push -u origin interpolate_to then on GitHub, open a PR with |
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.
I think this is actually pretty close to being done, just a few little ideas for improvements and more complete testing. So maybe worth waiting a few days to get this in then continue work with extending it?
Thanks for the review, @larsoner. I have taken it into account. |
Does the CI error make sense to you?
if not then we should maybe improve the error messages |
not super clear... |
Must have been clear enough, because you did fix it 😆 ! I'll do one last review and mark for merge-when-green assuming it looks okay 👍 |
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.
Just some tiny tweaks I'll commit, thanks in advance @antoinecollas !
🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪 |
congrats @antoinecollas for nailing this one ! |
* upstream/main: [pre-commit.ci] pre-commit autoupdate (mne-tools#13110) ENH: add interpolate_to method (mne-tools#13044) add overwrite and verbose params to info.save (mne-tools#13107) Add support for n-dimensional arrays in `_tfr_from_mt` (mne-tools#13104) Skip first "New Segment" BrainVision marker (mne-tools#13100) MAINT: Use statsmodels pre and fix CircleCI (mne-tools#13106) Take units (m or mm) into account when showing fieldmaps on top of brains (mne-tools#13101) [pre-commit.ci] pre-commit autoupdate (mne-tools#13099) MAINT: Update code credit (mne-tools#13093) Fix EEGLAB import (nodatchans) (mne-tools#13097) MAINT: Fix CircleCI [circle deploy] (mne-tools#13089) [pre-commit.ci] pre-commit autoupdate (mne-tools#13088) Fix signature of some more _close() methods [circle deploy] (mne-tools#13087) Fix _close() on MNEAnnotationsFigure and MNESelectionFigure [circle deploy] (mne-tools#13086) BUG: Fix bug with Mesa 3D detection (mne-tools#13082)
Reference issue (if any)
Closes #12486
What does this implement/fix?
Implements
interpolate_to
next tointerpolate_bads
to interpolate EEG data to a given montageAdditional information
Interpolating channels using this implementation has shown to be effective in
Mellot, A., Collas, A., Chevallier, S., Engemann, D. and Gramfort, A., 2024. Physics-informed and Unsupervised Riemannian Domain Adaptation for Machine Learning on Heterogeneous EEG Datasets. EUSIPCO 2024