Skip to content

Commit

Permalink
fix info when MNE interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinecollas committed Jan 6, 2025
1 parent fb8804f commit 7ff7f51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mne/channels/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,8 +1015,9 @@ def interpolate_to(self, montage, method="spline", reg=0.0):
pos_to = np.stack(list(ch_pos.values()), axis=0)
mapping = _make_interpolation_matrix(pos_from, pos_to, alpha=reg)
elif method == "MNE":
info_eeg = pick_info(self.info, picks_from)
mapping = _map_meg_or_eeg_channels(
self.info, new_info, mode="accurate", origin="auto"
info_eeg, new_info, mode="accurate", origin="auto"
)

# Apply the interpolation mapping
Expand Down

0 comments on commit 7ff7f51

Please sign in to comment.