Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinecollas committed Dec 30, 2024
1 parent e7cefd8 commit 3a0383a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
8 changes: 8 additions & 0 deletions doc/references.bib
Original file line number Diff line number Diff line change
Expand Up @@ -2504,3 +2504,11 @@ @article{OyamaEtAl2015
year = {2015},
pages = {24--36},
}

@inproceedings{MellotEtAl2024,
title = {Physics-informed and Unsupervised Riemannian Domain Adaptation for Machine Learning on Heterogeneous EEG Datasets},
author = {Mellot, Apolline and Collas, Antoine and Chevallier, Sylvain and Engemann, Denis and Gramfort, Alexandre},
booktitle = {Proceedings of the 32nd European Signal Processing Conference (EUSIPCO)},
year = {2024},
address = {Lyon, France}
}
12 changes: 6 additions & 6 deletions examples/preprocessing/interpolate_to.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
.. _ex-interpolate-to-any-montage:
======================================================
Interpolate EEG data to a any montage
Interpolate EEG data to any montage
======================================================
This example demonstrates how to interpolate EEG channels to match a given
montage using the :func:`interpolate_to` method. This can be useful for standardizing
EEG channel layouts across different datasets.
EEG channel layouts across different datasets (see :footcite:`MellotEtAl2024`).
- Using the MNE method for interpolation.
- The target montage will be the standard "standard_1020" montage.
- Using the field interpolation for EEG data.
- Using the target montage "biosemi16".
In this example, the data from the original EEG channels will be
interpolated onto the positions defined by the "standard_1020" montage.
interpolated onto the positions defined by the "biosemi16" montage.
"""

# Authors: Antoine Collas <[email protected]>
Expand Down Expand Up @@ -41,7 +41,7 @@

# %%
# Define the target montage
standard_montage = make_standard_montage("standard_1020")
standard_montage = make_standard_montage("biosemi16")

# %%
# Use interpolate_to to project EEG data to the standard montage
Expand Down
2 changes: 2 additions & 0 deletions mne/channels/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,8 @@ def interpolate_to(self, montage, method="MNE", reg=0.0):
-------
inst : instance of Raw, Epochs, or Evoked
The instance with updated channel locations and data.
.. versionadded:: 1.10.0
"""
import numpy as np

Expand Down

0 comments on commit 3a0383a

Please sign in to comment.