Skip to content

[MRG+1] fix morph of volume source space made of more than 1 label - #5590

Merged
agramfort merged 4 commits into
mne-tools:masterfrom
agramfort:morph_src_vol_labels
Oct 9, 2018
Merged

agramfort merged 4 commits into
mne-tools:masterfrom
agramfort:morph_src_vol_labels

Conversation

@agramfort

Copy link
Copy Markdown
Member

fixes #5224

_interpolate_data in morph.py was only taking into account the first label.

now it's looping properly over all src label.

let me know if you see a way to test this.

@poojaprabhu9 please confirm if this fixes your problem.

@larsoner

larsoner commented Oct 7, 2018

Copy link
Copy Markdown
Member

@codecov

codecov Bot commented Oct 8, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #5590 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #5590      +/-   ##
==========================================
+ Coverage   88.38%   88.39%   +0.01%     
==========================================
  Files         363      363              
  Lines       67861    67940      +79     
  Branches    11472    11484      +12     
==========================================
+ Hits        59977    60054      +77     
- Misses       5048     5049       +1     
- Partials     2836     2837       +1

@larsoner

larsoner commented Oct 8, 2018

Copy link
Copy Markdown
Member

let me know if you see a way to test this.

Test added and passes on this PR (fails on master) feel free to have a look and see if you agree it's correct.

Otherwise LGTM +1 for merge

@larsoner larsoner changed the title [MRG] fix morph of volume source space made of more than 1 label [MRG+1] fix morph of volume source space made of more than 1 label Oct 8, 2018
@larsoner larsoner added this to the 0.17 milestone Oct 8, 2018
@agramfort

Copy link
Copy Markdown
Member Author

thx @larsoner

let's merge when CIs are green.

@agramfort
agramfort merged commit 6cc5c42 into mne-tools:master Oct 9, 2018
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.

problem in visualising the inverse source solution when more than one volume labels are used

2 participants