Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changes/dev/13687.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug in :func:`~mne.compute_source_morph` where :attr:`mne.SourceMorph.spacing` was set incorrectly when ``src_to`` is provided, by `Famous077`_.
3 changes: 1 addition & 2 deletions doc/changes/names.inc
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@
.. _Evgenii Kalenkovich: https://github.com/kalenkovich
.. _Evgeny Goldstein: https://github.com/evgenygoldstein
.. _Ezequiel Mikulan: https://github.com/ezemikulan
.. _Ezequiel Mikulan: https://github.com/ezemikulan
.. _Fahimeh Mamashli: https://github.com/fmamashli
.. _Famous Raj Bhat: https://github.com/Famous077
.. _Famous077: https://github.com/Famous077
.. _Farzin Negahbani: https://github.com/Farzin-Negahbani
.. _Federico Raimondo: https://github.com/fraimondo
.. _Federico Zamberlan: https://github.com/fzamberlan
Expand Down
3 changes: 3 additions & 0 deletions mne/morph.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,11 @@ def compute_source_morph(
assert morph_mat.shape[0] == n_verts

vertices_to = vertices_to_surf + vertices_to_vol

if src_to is not None:
assert len(vertices_to) == len(src_to)
# set spacing to None when src_to is provided
spacing = None
morph = SourceMorph(
subject_from,
subject_to,
Expand Down